summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump/odsyntax.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-11-04 05:33:15 +0000
committerache <ache@FreeBSD.org>1997-11-04 05:33:15 +0000
commit4f252df3ada32f04597589573c19208aa06a8f39 (patch)
tree4a11caa0a301d1fd6d2b66b6873b978a31e4bdf1 /usr.bin/hexdump/odsyntax.c
parent2fba0f4632d76a1730c62c2a90fa4328fe1d4103 (diff)
downloadFreeBSD-src-4f252df3ada32f04597589573c19208aa06a8f39.zip
FreeBSD-src-4f252df3ada32f04597589573c19208aa06a8f39.tar.gz
Localize it
Diffstat (limited to 'usr.bin/hexdump/odsyntax.c')
-rw-r--r--usr.bin/hexdump/odsyntax.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/hexdump/odsyntax.c b/usr.bin/hexdump/odsyntax.c
index 5c6d3e1..7ad7c37 100644
--- a/usr.bin/hexdump/odsyntax.c
+++ b/usr.bin/hexdump/odsyntax.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)odsyntax.c 8.2 (Berkeley) 5/4/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: odsyntax.c,v 1.5 1997/07/10 06:48:21 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -161,9 +161,8 @@ odoffset(argc, argvp)
char ***argvp;
{
extern off_t skip;
- register char *num, *p;
+ unsigned char *p, *num, *end;
int base;
- char *end;
/*
* The offset syntax of od(1) was genuinely bizarre. First, if
@@ -215,7 +214,7 @@ odoffset(argc, argvp)
base = 10;
}
- skip = strtol(num, &end, base ? base : 8);
+ skip = strtol(num, (char **)&end, base ? base : 8);
/* if end isn't the same as p, we got a non-octal digit */
if (end != p) {
OpenPOWER on IntegriCloud