summaryrefslogtreecommitdiffstats
path: root/usr.bin/cut
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2012-11-24 04:15:25 +0000
committerandrew <andrew@FreeBSD.org>2012-11-24 04:15:25 +0000
commitfe5328de4d88c2b21fcede1faefbb88969c774f7 (patch)
tree1806b5cf7271133e6354f1330a22f45b17e224dd /usr.bin/cut
parent4eee13b05f0d46c3c647bda0f40f62785b22ec70 (diff)
downloadFreeBSD-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.c4
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')
OpenPOWER on IntegriCloud