Fix -Wpointer-sign warnings in usr.bin/grep
Reviewed By: kevans Differential Revision: https://reviews.freebsd.org/D26479
This commit is contained in:
parent
6129f33eb2
commit
86ce536521
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365940
@ -55,12 +55,12 @@ __FBSDID("$FreeBSD$");
|
|||||||
#define MAXBUFSIZ (32 * 1024)
|
#define MAXBUFSIZ (32 * 1024)
|
||||||
#define LNBUFBUMP 80
|
#define LNBUFBUMP 80
|
||||||
|
|
||||||
static unsigned char *buffer;
|
static char *buffer;
|
||||||
static unsigned char *bufpos;
|
static char *bufpos;
|
||||||
static size_t bufrem;
|
static size_t bufrem;
|
||||||
static size_t fsiz;
|
static size_t fsiz;
|
||||||
|
|
||||||
static unsigned char *lnbuf;
|
static char *lnbuf;
|
||||||
static size_t lnbuflen;
|
static size_t lnbuflen;
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
@ -97,7 +97,7 @@ grep_lnbufgrow(size_t newlen)
|
|||||||
char *
|
char *
|
||||||
grep_fgetln(struct file *f, struct parsec *pc)
|
grep_fgetln(struct file *f, struct parsec *pc)
|
||||||
{
|
{
|
||||||
unsigned char *p;
|
char *p;
|
||||||
char *ret;
|
char *ret;
|
||||||
size_t len;
|
size_t len;
|
||||||
size_t off;
|
size_t off;
|
||||||
|
Loading…
Reference in New Issue
Block a user