svn commit: r231484 - projects/arm_eabi/bin/ls
Andrew Turner
andrew at FreeBSD.org
Sat Feb 11 00:19:31 UTC 2012
Author: andrew
Date: Sat Feb 11 00:19:31 2012
New Revision: 231484
URL: http://svn.freebsd.org/changeset/base/231484
Log:
Fix a warning by removing an unneeded test when wchar_t is unsigned.
Modified:
projects/arm_eabi/bin/ls/util.c
Modified: projects/arm_eabi/bin/ls/util.c
==============================================================================
--- projects/arm_eabi/bin/ls/util.c Fri Feb 10 23:55:40 2012 (r231483)
+++ projects/arm_eabi/bin/ls/util.c Sat Feb 11 00:19:31 2012 (r231484)
@@ -184,7 +184,10 @@ prn_octal(const char *s)
for (i = 0; i < (int)clen; i++)
putchar((unsigned char)s[i]);
len += wcwidth(wc);
- } else if (goodchar && f_octal_escape && wc >= 0 &&
+ } else if (goodchar && f_octal_escape &&
+#if WCHAR_MIN < 0
+ wc >= 0 &&
+#endif
wc <= (wchar_t)UCHAR_MAX &&
(p = strchr(esc, (char)wc)) != NULL) {
putchar('\\');
More information about the svn-src-projects
mailing list