tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

grep/util.c type mismatch



building NetBSD's grep for Android/x86, i get:

grep/util.c:332:9: error: format '%lc' expects argument of type
'wchar_t *', but argument 3 has type 'wint_t *' [-Werror=format=]
         "%lc", &wbegin) != 1)
         ^
grep/util.c:336:9: error: format '%lc' expects argument of type
'wchar_t *', but argument 3 has type 'wint_t *' [-Werror=format=]
         "%lc", &wend) != 1)
         ^


cvs diff: Diffing .
Index: util.c
===================================================================
RCS file: /cvsroot/src/usr.bin/grep/util.c,v
retrieving revision 1.17
diff -u -r1.17 util.c
--- util.c 21 Jan 2013 03:24:43 -0000 1.17
+++ util.c 14 Jul 2014 18:05:23 -0000
@@ -324,7 +324,7 @@
  continue;
  /* Check for whole word match */
  if (fg_pattern[i].word && pmatch.rm_so != 0) {
- wint_t wbegin, wend;
+ wchar_t wbegin, wend;

  wbegin = wend = L' ';
  if (pmatch.rm_so != 0 &&
cvs diff: Diffing nls


Home | Main Index | Thread Index | Old Index