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
This commit is contained in:
avg 2017-10-01 20:12:30 +00:00
parent f448611e08
commit ad744541fa

View File

@ -867,7 +867,7 @@ static void addquoted (lua_State *L, luaL_Buffer *b, int arg) {
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));