Date: Fri, 24 Sep 2021 00:59:22 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: be94e7783975 - stable/12 - Fix -Wpointer-sign warnings in usr.bin/grep Message-ID: <202109240059.18O0xMp5075831@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=be94e77839751408d87f53e5e371a0d06b17072f commit be94e77839751408d87f53e5e371a0d06b17072f Author: Alex Richardson <arichardson@FreeBSD.org> AuthorDate: 2020-09-21 09:03:37 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2021-09-24 00:58:14 +0000 Fix -Wpointer-sign warnings in usr.bin/grep Reviewed By: kevans Differential Revision: https://reviews.freebsd.org/D26479 (cherry picked from commit 86ce5365215ab252e0d1904b410381c96cfc4076) --- usr.bin/grep/file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/grep/file.c b/usr.bin/grep/file.c index e390af9cc800..8577572c2887 100644 --- a/usr.bin/grep/file.c +++ b/usr.bin/grep/file.c @@ -55,12 +55,12 @@ __FBSDID("$FreeBSD$"); #define MAXBUFSIZ (32 * 1024) #define LNBUFBUMP 80 -static unsigned char *buffer; -static unsigned char *bufpos; +static char *buffer; +static char *bufpos; static size_t bufrem; static size_t fsiz; -static unsigned char *lnbuf; +static char *lnbuf; static size_t lnbuflen; static inline int @@ -97,7 +97,7 @@ grep_lnbufgrow(size_t newlen) char * grep_fgetln(struct file *f, struct parsec *pc) { - unsigned char *p; + char *p; size_t len; size_t off; ptrdiff_t diff;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109240059.18O0xMp5075831>