diff options
author | 1997-01-17 07:18:02 +0000 | |
---|---|---|
committer | 1997-01-17 07:18:02 +0000 | |
commit | 08e8032d4e006b506a8232ddb762e2554acf6d8d (patch) | |
tree | bcda49cc5375b8d2168711ad3e1ebcc23b3c1a41 /usr.bin/patch/backupfile.c | |
parent | r?index -> strr?chr (diff) | |
download | wireguard-openbsd-08e8032d4e006b506a8232ddb762e2554acf6d8d.tar.xz wireguard-openbsd-08e8032d4e006b506a8232ddb762e2554acf6d8d.zip |
more r?index -> strr?chr
Diffstat (limited to 'usr.bin/patch/backupfile.c')
-rw-r--r-- | usr.bin/patch/backupfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/patch/backupfile.c b/usr.bin/patch/backupfile.c index 1904a4e9b08..349ae84c082 100644 --- a/usr.bin/patch/backupfile.c +++ b/usr.bin/patch/backupfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: backupfile.c,v 1.2 1996/06/10 11:21:25 niklas Exp $ */ +/* $OpenBSD: backupfile.c,v 1.3 1997/01/17 07:18:02 millert Exp $ */ /* backupfile.c -- make Emacs style backup file names Copyright (C) 1990 Free Software Foundation, Inc. @@ -14,7 +14,7 @@ Some algorithms adapted from GNU Emacs. */ #ifndef lint -static char rcsid[] = "$OpenBSD: backupfile.c,v 1.2 1996/06/10 11:21:25 niklas Exp $"; +static char rcsid[] = "$OpenBSD: backupfile.c,v 1.3 1997/01/17 07:18:02 millert Exp $"; #endif /* not lint */ #include <stdio.h> @@ -215,7 +215,7 @@ basename (name) { char *base; - base = rindex (name, '/'); + base = strrchr (name, '/'); return base ? base + 1 : name; } @@ -232,7 +232,7 @@ dirname (path) char *slash; int length; /* Length of result, not including NUL. */ - slash = rindex (path, '/'); + slash = strrchr (path, '/'); if (slash == 0) { /* File is in the current directory. */ |