]> Zhao Yanbai Git Server - minix.git/commitdiff
grep: unsigned chars to fix gcc warnings.
authorBen Gras <ben@minix3.org>
Sun, 20 Jun 2010 12:31:55 +0000 (12:31 +0000)
committerBen Gras <ben@minix3.org>
Sun, 20 Jun 2010 12:31:55 +0000 (12:31 +0000)
commands/grep/binary.c
commands/grep/grep.h

index 50e3dbcb88a2f6fd76ebcbe16f44ccd9fcb1a6b6..245059fa54cff7e896d0605f4c3827686d92698c 100644 (file)
@@ -37,7 +37,7 @@
 int
 bin_file(FILE *f)
 {
-       char            buf[BUFSIZ];
+       unsigned char   buf[BUFSIZ];
        size_t          i, m;
        int             ret = 0;
 
@@ -61,7 +61,7 @@ bin_file(FILE *f)
 int
 gzbin_file(gzFile *f)
 {
-       char            buf[BUFSIZ];
+       unsigned char   buf[BUFSIZ];
        int             i, m;
        int             ret = 0;
 
index 345796fee22d6d8b58cda475ff91dcde1b19ea61..bfbca2329e797f032b961a7f34f08fc7bce50510 100644 (file)
@@ -101,7 +101,7 @@ void                 clearqueue(void);
 typedef struct mmfile {
        int      fd;
        size_t   len;
-       char    *base, *end, *ptr;
+       unsigned char   *base, *end, *ptr;
 } mmf_t;
 
 mmf_t          *mmopen(char *fn, char *mode);