Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2012 04:15:25 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243474 - head/usr.bin/cut
Message-ID:  <201211240415.qAO4FPaG062952@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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')



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211240415.qAO4FPaG062952>