From 2122aac5c94fc53ae57b26542a468fa16d348a7b Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Wed, 21 May 2014 11:03:42 -0700 Subject: [PATCH] toolbox: fix x86 build Change-Id: Iadedae749b31adb1310fa50a68b2dc19097c3654 Signed-off-by: Greg Hackmann --- toolbox/grep/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolbox/grep/util.c b/toolbox/grep/util.c index 497db060d..5712feeac 100644 --- a/toolbox/grep/util.c +++ b/toolbox/grep/util.c @@ -273,7 +273,7 @@ procfile(const char *fn) return (c); } -#define iswword(x) (iswalnum((x)) || (x) == L'_') +#define iswword(x) (iswalnum((wint_t)(x)) || (x) == L'_') /* * Processes a line comparing it with the specified patterns. Each pattern @@ -323,7 +323,7 @@ procline(struct str *l, int nottext) 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 &&