svn commit: r324178 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua
Andriy Gapon
avg at FreeBSD.org
Sun Oct 1 20:12:31 UTC 2017
Author: avg
Date: Sun Oct 1 20:12:30 2017
New Revision: 324178
URL: https://svnweb.freebsd.org/changeset/base/324178
Log:
unbreak kernel builds on sparc64 and powerpc after r324163, ZFS Channel Programs
The custom iscntrl() in ZFS Lua code expects a signed argumnet, so
remove the harmful cast.
Reported by: ian
MFC after: 5 weeks
X-MFC with: r324163
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c Sun Oct 1 19:52:47 2017 (r324177)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c Sun Oct 1 20:12:30 2017 (r324178)
@@ -867,7 +867,7 @@ static void addquoted (lua_State *L, luaL_Buffer *b, i
luaL_addchar(b, '\\');
luaL_addchar(b, *s);
}
- else if (*s == '\0' || iscntrl(uchar(*s))) {
+ else if (*s == '\0' || iscntrl(*s)) {
char buff[10];
if (!isdigit(uchar(*(s+1))))
sprintf(buff, "\\%d", (int)uchar(*s));
More information about the svn-src-all
mailing list