Am Sun, 1 Oct 2017 20:12:30 +0000 (UTC)
Andriy Gapon <a...@freebsd.org> schrieb:

> 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));
> _______________________________________________
> svn-src-head@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

The build of world fails for me with the error shown below:


[...]
Building /usr/obj/usr/src/cddl/lib/libzpool/lapi.o
--- lstrlib.o ---
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c:114:12: 
warning:
implicitly declaring library function 'tolower' with type 'int
(int)' [-Wimplicit-function-declaration] p[i] = tolower(uchar(s[i])); ^
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c:114:12: 
note:
include the header <ctype.h> or explicitly provide a declaration for
'tolower' 
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c:127:12:
warning: implicitly declaring library function 'toupper' with type 'int
(int)' [-Wimplicit-function-declaration] p[i] = toupper(uchar(s[i]));


-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).

Attachment: pgp6H09BxviGA.pgp
Description: OpenPGP digital signature

Reply via email to