svn commit: r324178 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua
O. Hartmann
ohartmann at walstatt.org
Sun Oct 1 20:37:24 UTC 2017
Am Sun, 1 Oct 2017 20:12:30 +0000 (UTC)
Andriy Gapon <avg at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe at 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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 313 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20171001/2fbd13f8/attachment.sig>
More information about the svn-src-all
mailing list