diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-10-13 07:51:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-10-13 07:51:52 +0000 |
commit | 91f0737ed35922cbdf8714f88c41f1f1cb4da2ec (patch) | |
tree | 60fedb2f96a1ddf2c15c15369de192903d34cbb3 /usr.bin/file | |
parent | 0d604c6432a04dd46bd57dcea6000e4354c09720 (diff) |
unsigned char fix; rahnds
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/file.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/file/file.h b/usr.bin/file/file.h index 4f224627cf0..66cfee8fdd9 100644 --- a/usr.bin/file/file.h +++ b/usr.bin/file/file.h @@ -1,4 +1,4 @@ -/* $OpenBSD: file.h,v 1.5 1998/07/10 15:05:21 mickey Exp $ */ +/* $OpenBSD: file.h,v 1.6 1998/10/13 07:51:51 deraadt Exp $ */ /* * file.h - definitions for file(1) program @@ -30,6 +30,7 @@ #ifndef __file_h__ #define __file_h__ +typedef int8_t int8; typedef int32_t int32; typedef u_int32_t uint32; @@ -47,12 +48,12 @@ struct magic { #define ADD 4 /* if '>&' appears, */ short cont_level; /* level of ">" */ struct { - char type; /* byte short long */ + int8 type; /* byte short long */ int32 offset; /* offset from indirection */ } in; int32 offset; /* offset to magic number */ unsigned char reln; /* relation (0=eq, '>'=gt, etc) */ - char type; /* int, short, long or string. */ + int8 type; /* int, short, long or string. */ char vallen; /* length of string value, if any */ #define BYTE 1 #define SHORT 2 |