From: Ben Gras Date: Sun, 20 Jun 2010 12:31:55 +0000 (+0000) Subject: grep: unsigned chars to fix gcc warnings. X-Git-Tag: v3.1.8~426 X-Git-Url: http://zhaoyanbai.com/repos/dnssec-signzone.html?a=commitdiff_plain;h=137495002d25f337b2f97a2dabdf5377f15c905b;p=minix.git grep: unsigned chars to fix gcc warnings. --- diff --git a/commands/grep/binary.c b/commands/grep/binary.c index 50e3dbcb8..245059fa5 100644 --- a/commands/grep/binary.c +++ b/commands/grep/binary.c @@ -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; diff --git a/commands/grep/grep.h b/commands/grep/grep.h index 345796fee..bfbca2329 100644 --- a/commands/grep/grep.h +++ b/commands/grep/grep.h @@ -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);