From: | Eirik Nygaard <eirikn@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Mon, 30 Aug 2004 11:06:50 -0700 (PDT) |
eirikn 2004/08/30 11:06:50 PDT DragonFly src repository Modified files: usr.bin/chkey chkey.c usr.bin/cksum cksum.c usr.bin/compress compress.c usr.bin/finger finger.c usr.bin/hexdump display.c hexdump.c hexsyntax.c parse.c usr.bin/netstat if.c inet.c inet6.c iso.c usr.bin/quota quota.c usr.bin/ranlib misc.c usr.bin/rlogin rlogin.c usr.bin/rpcgen rpc_main.c usr.bin/systat devs.c netcmds.c netstat.c usr.bin/talk get_names.c usr.bin/tftp main.c tftp.c usr.bin/tr str.c usr.bin/tset map.c term.c wrterm.c usr.bin/window lcmd1.c lcmd2.c main.c ww.h usr.bin/write write.c Log: 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@xxxxxxxxxx> Revision Changes Path 1.4 +2 -2 src/usr.bin/chkey/chkey.c 1.5 +1 -1 src/usr.bin/cksum/cksum.c 1.4 +3 -3 src/usr.bin/compress/compress.c 1.4 +1 -1 src/usr.bin/finger/finger.c 1.4 +1 -1 src/usr.bin/hexdump/display.c 1.4 +1 -1 src/usr.bin/hexdump/hexdump.c 1.4 +1 -1 src/usr.bin/hexdump/hexsyntax.c 1.4 +4 -4 src/usr.bin/hexdump/parse.c 1.7 +1 -1 src/usr.bin/netstat/if.c 1.15 +1 -1 src/usr.bin/netstat/inet.c 1.4 +3 -3 src/usr.bin/netstat/inet6.c 1.3 +2 -2 src/usr.bin/netstat/iso.c 1.4 +1 -1 src/usr.bin/quota/quota.c 1.5 +1 -1 src/usr.bin/ranlib/misc.c 1.4 +1 -1 src/usr.bin/rlogin/rlogin.c 1.10 +2 -2 src/usr.bin/rpcgen/rpc_main.c 1.4 +2 -2 src/usr.bin/systat/devs.c 1.4 +2 -2 src/usr.bin/systat/netcmds.c 1.4 +3 -3 src/usr.bin/systat/netstat.c 1.4 +1 -1 src/usr.bin/talk/get_names.c 1.5 +7 -7 src/usr.bin/tftp/main.c 1.4 +2 -2 src/usr.bin/tftp/tftp.c 1.4 +1 -1 src/usr.bin/tr/str.c 1.5 +1 -1 src/usr.bin/tset/map.c 1.4 +2 -2 src/usr.bin/tset/term.c 1.4 +1 -1 src/usr.bin/tset/wrterm.c 1.3 +2 -2 src/usr.bin/window/lcmd1.c 1.3 +2 -2 src/usr.bin/window/lcmd2.c 1.3 +3 -3 src/usr.bin/window/main.c 1.3 +2 -2 src/usr.bin/window/ww.h 1.4 +1 -1 src/usr.bin/write/write.c http://www.dragonflybsd.org/cvsweb/src/usr.bin/chkey/chkey.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/cksum/cksum.c.diff?r1=1.4&r2=1.5&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/compress/compress.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/finger/finger.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/hexdump/display.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/hexdump/hexdump.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/hexdump/hexsyntax.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/hexdump/parse.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/netstat/if.c.diff?r1=1.6&r2=1.7&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/netstat/inet.c.diff?r1=1.14&r2=1.15&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/netstat/inet6.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/netstat/iso.c.diff?r1=1.2&r2=1.3&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/quota/quota.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/ranlib/misc.c.diff?r1=1.4&r2=1.5&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/rlogin/rlogin.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/rpcgen/rpc_main.c.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/systat/devs.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/systat/netcmds.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/systat/netstat.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/talk/get_names.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/tftp/main.c.diff?r1=1.4&r2=1.5&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/tftp/tftp.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/tr/str.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/tset/map.c.diff?r1=1.4&r2=1.5&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/tset/term.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/tset/wrterm.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/window/lcmd1.c.diff?r1=1.2&r2=1.3&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/window/lcmd2.c.diff?r1=1.2&r2=1.3&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/window/main.c.diff?r1=1.2&r2=1.3&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/window/ww.h.diff?r1=1.2&r2=1.3&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/write/write.c.diff?r1=1.3&r2=1.4&f=u