summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/pac
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-07-23 20:53:41 +0000
committerimp <imp@FreeBSD.org>1997-07-23 20:53:41 +0000
commit181a3aef05fad102fcb087cc47240b3a5d52298e (patch)
treec48d19a7b4478e844002bb59020ae6d5c314f81f /usr.sbin/lpr/pac
parent31c730f3a6d3460c60a94601d51508874b1db14a (diff)
downloadFreeBSD-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/pac')
-rw-r--r--usr.sbin/lpr/pac/pac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c
index 609d407..9806965 100644
--- a/usr.sbin/lpr/pac/pac.c
+++ b/usr.sbin/lpr/pac/pac.c
@@ -221,8 +221,8 @@ account(acct)
;
ic = atoi(cp2);
*cp2 = '\0';
- if (mflag && index(cp, ':'))
- cp = index(cp, ':') + 1;
+ if (mflag && strchr(cp, ':'))
+ cp = strchr(cp, ':') + 1;
hp = lookup(cp);
if (hp == NULL) {
if (!allflag)
OpenPOWER on IntegriCloud