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/pac | |
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/pac')
-rw-r--r-- | usr.sbin/lpr/pac/pac.c | 4 |
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) |