Project

General

Profile

Bug #11431

sort: NULL pointer errors

Added by Toomas Soome 5 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                     from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                     from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                     from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                     from /code/illumos-gate/proto/root_i386/usr/include/sys/mman.h:54,
                     from ../common/utility.h:36,
                     from ../common/utility.c:29:
    ../common/utility.c: In function 'wxwrite':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 1 of 'cxwrite' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/utility.c:559:19: note: in expansion of macro 'NULL'
       return (cxwrite(NULL, 0, 1));
                       ^~~~
    ../common/utility.c:494:1: note: expected 'int' but argument is of type 'void *'
     cxwrite(int fd, char *ptr, size_t nbytes)
     ^~~~~~~
    cc1: all warnings being treated as errors

Also available in: Atom PDF