From owner-svn-src-head@FreeBSD.ORG Sat Nov 24 04:15:26 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1E4A663; Sat, 24 Nov 2012 04:15:25 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D2EBD8FC0C; Sat, 24 Nov 2012 04:15:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAO4FPRI062953; Sat, 24 Nov 2012 04:15:25 GMT (envelope-from andrew@svn.freebsd.org) Received: (from andrew@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAO4FPaG062952; Sat, 24 Nov 2012 04:15:25 GMT (envelope-from andrew@svn.freebsd.org) Message-Id: <201211240415.qAO4FPaG062952@svn.freebsd.org> From: Andrew Turner Date: Sat, 24 Nov 2012 04:15:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243474 - head/usr.bin/cut X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2012 04:15:26 -0000 Author: andrew Date: Sat Nov 24 04:15:25 2012 New Revision: 243474 URL: http://svnweb.freebsd.org/changeset/base/243474 Log: 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. Modified: head/usr.bin/cut/cut.c Modified: head/usr.bin/cut/cut.c ============================================================================== --- head/usr.bin/cut/cut.c Sat Nov 24 02:55:05 2012 (r243473) +++ head/usr.bin/cut/cut.c Sat Nov 24 04:15:25 2012 (r243474) @@ -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')