Use strchr instead of index, and strrchr instead of rindex because the str*chr
authorEirik Nygaard <eirikn@dragonflybsd.org>
Mon, 30 Aug 2004 19:27:22 +0000 (19:27 +0000)
committerEirik Nygaard <eirikn@dragonflybsd.org>
Mon, 30 Aug 2004 19:27:22 +0000 (19:27 +0000)
commit17b6171971dc09440bf50b49ed8aad333d24a1da
tree6a3fc62d065b32a794483ef5e2decf6a65151a5f
parent43b4d1bd9e0b32f7b034f9e023c3c3d224d2d131
Use strchr instead of index, and strrchr instead of rindex because the str*chr
functions are standard compliant.

index() and rindex() do the same thing as repectively strchr() and strrchr() do.

Submitted by: Douwe Kiela <virtus@wanadoo.nl>
21 files changed:
bin/ln/ln.c
bin/rm/rm.c
bin/test/test.c
sbin/disklabel/disklabel.c
sbin/dump/main.c
sbin/quotacheck/quotacheck.c
sbin/reboot/reboot.c
usr.sbin/chown/chown.c
usr.sbin/config/mkmakefile.c
usr.sbin/diskpart/diskpart.c
usr.sbin/edquota/edquota.c
usr.sbin/inetd/inetd.c
usr.sbin/mtree/spec.c
usr.sbin/newsyslog/newsyslog.c
usr.sbin/quotaon/quotaon.c
usr.sbin/repquota/repquota.c
usr.sbin/route6d/route6d.c
usr.sbin/rtprio/rtprio.c
usr.sbin/rwhod/rwhod.c
usr.sbin/traceroute6/traceroute6.c
usr.sbin/vnconfig/vnconfig.c