svn commit: r365940 - head/usr.bin/grep

Alex Richardson arichardson at FreeBSD.org
Mon Sep 21 09:03:44 UTC 2020


Author: arichardson
Date: Mon Sep 21 09:03:37 2020
New Revision: 365940
URL: https://svnweb.freebsd.org/changeset/base/365940

Log:
  Fix -Wpointer-sign warnings in usr.bin/grep
  
  Reviewed By:	kevans
  Differential Revision: https://reviews.freebsd.org/D26479

Modified:
  head/usr.bin/grep/file.c

Modified: head/usr.bin/grep/file.c
==============================================================================
--- head/usr.bin/grep/file.c	Mon Sep 21 09:03:32 2020	(r365939)
+++ head/usr.bin/grep/file.c	Mon Sep 21 09:03:37 2020	(r365940)
@@ -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;
 	char *ret;
 	size_t len;
 	size_t off;


More information about the svn-src-head mailing list