diff options
author | imp <imp@FreeBSD.org> | 1997-07-23 20:53:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-07-23 20:53:41 +0000 |
commit | 181a3aef05fad102fcb087cc47240b3a5d52298e (patch) | |
tree | c48d19a7b4478e844002bb59020ae6d5c314f81f /usr.sbin/lpr/common_source | |
parent | 31c730f3a6d3460c60a94601d51508874b1db14a (diff) | |
download | FreeBSD-src-181a3aef05fad102fcb087cc47240b3a5d52298e.zip FreeBSD-src-181a3aef05fad102fcb087cc47240b3a5d52298e.tar.gz |
index -> strchr and rindex -> strrchr to reduce the number of gratuitous
diffes with NetBSD/OpenBSD. These changes seem to predate the NetBSD/OpenBSD
split, so it is hard to give proper credit for them.
Obtained from: OpenBSD.
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/recvjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/common_source/recvjob.c b/usr.sbin/lpr/common_source/recvjob.c index b1b0a77..3bfbb99 100644 --- a/usr.sbin/lpr/common_source/recvjob.c +++ b/usr.sbin/lpr/common_source/recvjob.c @@ -200,7 +200,7 @@ readjob() } (void) strncpy(dfname, cp, sizeof dfname-1); dfname[sizeof dfname-1] = '\0'; - if (index(dfname, '/')) + if (strchr(dfname, '/')) frecverr("readjob: %s: illegal path name", dfname); (void) readfile(dfname, size); |