Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2017 13:40:45 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322618 - head/usr.bin/grep
Message-ID:  <201708171340.v7HDejMv040953@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Thu Aug 17 13:40:45 2017
New Revision: 322618
URL: https://svnweb.freebsd.org/changeset/base/322618

Log:
  bsdgrep: cast pmatch.rm_so to fix build when linking against libgnuregex
  
  Reported by:	many
  Approved by:	emaste (mentor)
  MFC after:	immediate

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

Modified: head/usr.bin/grep/util.c
==============================================================================
--- head/usr.bin/grep/util.c	Thu Aug 17 11:36:39 2017	(r322617)
+++ head/usr.bin/grep/util.c	Thu Aug 17 13:40:45 2017	(r322618)
@@ -443,7 +443,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708171340.v7HDejMv040953>