summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep
diff options
context:
space:
mode:
authorkevans <kevans@FreeBSD.org>2017-08-17 13:48:46 +0000
committerkevans <kevans@FreeBSD.org>2017-08-17 13:48:46 +0000
commit3427b972705992ab10e73d3d30b116d40d42e439 (patch)
tree90cb7d3cf6b77f8c601eb042fe2a12c59a924d94 /usr.bin/grep
parentf04468c1b791e0af4267e1fb8e9302a4a52acb87 (diff)
downloadFreeBSD-src-3427b972705992ab10e73d3d30b116d40d42e439.zip
FreeBSD-src-3427b972705992ab10e73d3d30b116d40d42e439.tar.gz
bsdgrep: fix build when linking against libgnuregex
MFC r322618: bsdgrep: cast pmatch.rm_so to fix build when linking against libgnuregex Approved by: emaste (mentor)
Diffstat (limited to 'usr.bin/grep')
-rw-r--r--usr.bin/grep/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c
index 7b0a50b..627916c 100644
--- a/usr.bin/grep/util.c
+++ b/usr.bin/grep/util.c
@@ -450,7 +450,7 @@ procline(struct parsec *pc)
*/
if (r == REG_NOMATCH &&
(retry == pc->lnstart ||
- pmatch.rm_so + 1 < retry))
+ (unsigned int)pmatch.rm_so + 1 < retry))
retry = pmatch.rm_so + 1;
if (r == REG_NOMATCH)
continue;
OpenPOWER on IntegriCloud