diff options
author | 2002-06-05 13:46:44 +0000 | |
---|---|---|
committer | 2002-06-05 13:46:44 +0000 | |
commit | f3ac76cc311029b6d34f17bfe26f3670cc77f135 (patch) | |
tree | 8628ba26c963c62445a007ddf777f9d7cba86ee6 /usr.bin/file/apprentice.c | |
parent | My turn to help: (diff) | |
download | wireguard-openbsd-f3ac76cc311029b6d34f17bfe26f3670cc77f135.tar.xz wireguard-openbsd-f3ac76cc311029b6d34f17bfe26f3670cc77f135.zip |
use types in inttypes.h directly
Diffstat (limited to 'usr.bin/file/apprentice.c')
-rw-r--r-- | usr.bin/file/apprentice.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/file/apprentice.c b/usr.bin/file/apprentice.c index e484243bec1..482eb0a7484 100644 --- a/usr.bin/file/apprentice.c +++ b/usr.bin/file/apprentice.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apprentice.c,v 1.13 2002/03/14 06:51:41 mpech Exp $ */ +/* $OpenBSD: apprentice.c,v 1.14 2002/06/05 13:46:44 itojun Exp $ */ /* * apprentice - make one pass through /etc/magic, learning its secrets. @@ -36,7 +36,7 @@ #include "file.h" #ifndef lint -static char *moduleid = "$OpenBSD: apprentice.c,v 1.13 2002/03/14 06:51:41 mpech Exp $"; +static char *moduleid = "$OpenBSD: apprentice.c,v 1.14 2002/06/05 13:46:44 itojun Exp $"; #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ @@ -133,10 +133,10 @@ int check; /* non-zero? checking-only run. */ /* * extend the sign bit if the comparison is to be signed */ -uint32 +uint32_t signextend(m, v) struct magic *m; -uint32 v; +uint32_t v; { if (!(m->flag & UNSIGNED)) switch(m->type) { @@ -159,7 +159,7 @@ uint32 v; case LONG: case BELONG: case LELONG: - v = (int32) v; + v = (int32_t) v; break; case STRING: break; |