diff options
author | andrew <andrew@FreeBSD.org> | 2012-11-24 04:15:25 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2012-11-24 04:15:25 +0000 |
commit | fe5328de4d88c2b21fcede1faefbb88969c774f7 (patch) | |
tree | 1806b5cf7271133e6354f1330a22f45b17e224dd /usr.bin/cut | |
parent | 4eee13b05f0d46c3c647bda0f40f62785b22ec70 (diff) | |
download | FreeBSD-src-fe5328de4d88c2b21fcede1faefbb88969c774f7.zip FreeBSD-src-fe5328de4d88c2b21fcede1faefbb88969c774f7.tar.gz |
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.
Diffstat (limited to 'usr.bin/cut')
-rw-r--r-- | usr.bin/cut/cut.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cut/cut.c b/usr.bin/cut/cut.c index 576bafa..e343e5a 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') |