grep: unsigned chars to fix gcc warnings.

This commit is contained in:
Ben Gras 2010-06-20 12:31:55 +00:00
parent 28663f45d6
commit 137495002d
2 changed files with 3 additions and 3 deletions

View 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;

View 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);