summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2014-05-21 11:03:42 -0700
committerGreg Hackmann <ghackmann@google.com>2014-05-21 11:04:32 -0700
commit2122aac5c94fc53ae57b26542a468fa16d348a7b (patch)
tree348c27670eb48f64c49d6f3e14e7f1940e879af1 /toolbox
parent5eedd9d62fa30de15f7f6e3c04548d5e9b366ab3 (diff)
downloadsystem_core-2122aac5c94fc53ae57b26542a468fa16d348a7b.zip
system_core-2122aac5c94fc53ae57b26542a468fa16d348a7b.tar.gz
system_core-2122aac5c94fc53ae57b26542a468fa16d348a7b.tar.bz2
toolbox: fix x86 build
Change-Id: Iadedae749b31adb1310fa50a68b2dc19097c3654 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/grep/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolbox/grep/util.c b/toolbox/grep/util.c
index 497db06..5712fee 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 &&