=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/hexdump/hexdump.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/hexdump/hexdump.c 1995/10/18 08:45:23 1.1 +++ src/usr.bin/hexdump/hexdump.c 1996/05/21 21:51:51 1.2 @@ -39,7 +39,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)hexdump.c 5.5 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: hexdump.c,v 1.1 1995/10/18 08:45:23 deraadt Exp $"; +static char rcsid[] = "$Id: hexdump.c,v 1.2 1996/05/21 21:51:51 deraadt Exp $"; #endif /* not lint */ #include @@ -55,11 +55,10 @@ int argc; char **argv; { - extern int errno; register FS *tfs; - char *p, *rindex(); + char *p; - if (!(p = rindex(argv[0], 'o')) || strcmp(p, "od")) + if (!(p = strrchr(argv[0], 'o')) || strcmp(p, "od")) newsyntax(argc, &argv); else oldsyntax(argc, &argv);