git: be94e7783975 - stable/12 - Fix -Wpointer-sign warnings in usr.bin/grep
Ed Maste
emaste at FreeBSD.org
Fri Sep 24 00:59:23 UTC 2021
The branch stable/12 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=be94e77839751408d87f53e5e371a0d06b17072f
commit be94e77839751408d87f53e5e371a0d06b17072f
Author: Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2020-09-21 09:03:37 +0000
Commit: Ed Maste <emaste at 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;
More information about the dev-commits-src-all
mailing list