Project

General

Profile

Bug #11452

zonestat: NULL pointer errors

Added by Toomas Soome about 1 month ago. Updated 21 days ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors wit 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/alloca.h:32,
                     from zonestatd.c:25:
    zonestatd.c: In function 'zsd_stat_server':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'door_return' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    zonestatd.c:4515:38: note: in expansion of macro 'NULL'
      (void) door_return(rvalp, rvals, 0, NULL);
                                          ^~~~
    In file included from zonestatd.c:29:0:
    /code/illumos-gate/proto/root_i386/usr/include/door.h:51:5: note: expected 'uint_t {aka unsigned int}' but argument is of type 'void *'
     int door_return(char *, size_t, door_desc_t *, uint_t);
         ^~~~~~~~~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 21 days ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 1e88dc672aa1283fdca243a70822306e816340d7

commit  1e88dc672aa1283fdca243a70822306e816340d7
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-31T06:49:32.000Z

    11452 zonestat: NULL pointer errors
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF