From 137495002d25f337b2f97a2dabdf5377f15c905b Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 20 Jun 2010 12:31:55 +0000 Subject: [PATCH] grep: unsigned chars to fix gcc warnings. --- commands/grep/binary.c | 4 ++-- commands/grep/grep.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.44.0