diff options
author | ache <ache@FreeBSD.org> | 1997-11-04 05:33:15 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-11-04 05:33:15 +0000 |
commit | 4f252df3ada32f04597589573c19208aa06a8f39 (patch) | |
tree | 4a11caa0a301d1fd6d2b66b6873b978a31e4bdf1 /usr.bin/hexdump/parse.c | |
parent | 2fba0f4632d76a1730c62c2a90fa4328fe1d4103 (diff) | |
download | FreeBSD-src-4f252df3ada32f04597589573c19208aa06a8f39.zip FreeBSD-src-4f252df3ada32f04597589573c19208aa06a8f39.tar.gz |
Localize it
Diffstat (limited to 'usr.bin/hexdump/parse.c')
-rw-r--r-- | usr.bin/hexdump/parse.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/hexdump/parse.c b/usr.bin/hexdump/parse.c index 6fae728..34a2236 100644 --- a/usr.bin/hexdump/parse.c +++ b/usr.bin/hexdump/parse.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)parse.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: parse.c,v 1.2 1997/07/10 06:48:24 charnier Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -55,7 +55,7 @@ void addfile(name) char *name; { - register char *p; + register unsigned char *p; FILE *fp; int ch; char buf[2048 + 1]; @@ -81,11 +81,10 @@ void add(fmt) char *fmt; { - register char *p; + unsigned char *p, *savep; static FS **nextfs; FS *tfs; FU *tfu, **nextfu; - char *savep; /* start new linked list of format units */ tfs = emalloc(sizeof(FS)); @@ -158,7 +157,7 @@ size(fs) { register FU *fu; register int bcnt, cursize; - register char *fmt; + register unsigned char *fmt; int prec; /* figure out the data block size needed for each format unit */ @@ -213,8 +212,8 @@ rewrite(fs) enum { NOTOKAY, USEBCNT, USEPREC } sokay; register PR *pr, **nextpr; register FU *fu; - register char *p1, *p2; - char savech, *fmtp, cs[3]; + unsigned char *p1, *p2, *fmtp; + char savech, cs[3]; int nconv, prec; for (fu = fs->nextfu; fu; fu = fu->nextfu) { |