From bd9dd0c6c9be4d79685ebeaf1640c06e257c6ea0 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sat, 24 Nov 2012 04:15:25 +0000 Subject: [PATCH] The is_delim function works on wchar_t characters not ints, update the function to take a wchar_t as it's argument. This fixes the build when wchar_t is not an int, i.e. ARM EABI. --- usr.bin/cut/cut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/cut/cut.c b/usr.bin/cut/cut.c index 576bafadef1..e343e5ae347 100644 --- a/usr.bin/cut/cut.c +++ b/usr.bin/cut/cut.c @@ -68,7 +68,7 @@ static int b_n_cut(FILE *, const char *); static int c_cut(FILE *, const char *); static int f_cut(FILE *, const char *); static void get_list(char *); -static int is_delim(int); +static int is_delim(wchar_t); static void needpos(size_t); static void usage(void); @@ -364,7 +364,7 @@ out: } static int -is_delim(int ch) +is_delim(wchar_t ch) { if (wflag) { if (ch == ' ' || ch == '\t')