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/lpc | |
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/lpc')
-rw-r--r-- | usr.sbin/lpr/lpc/cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index 36a2dd2..c3b8632 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -1052,7 +1052,7 @@ doarg(job) * Look for a job item consisting of system name, colon, number * (example: ucbarpa:114) */ - if ((cp = index(job, ':')) != NULL) { + if ((cp = strchr(job, ':')) != NULL) { machine = job; *cp++ = '\0'; job = cp; |