Project

General

Profile

Bug #11147

libinetsvc: NULL pointer errrors

Added by Toomas Soome 5 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errrors:

    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/inetsvc.c:37:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:62:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[0].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:62:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:64:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[1].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:64:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:66:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[2].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:66:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:68:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[3].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:68:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:70:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[4].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:70:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:72:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[5].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:72:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:74:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[6].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:74:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:76:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[7].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:76:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:78:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[8].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:78:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:80:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[9].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:80:26: note: in expansion of macro 'NULL'
          B_FALSE, IVE_UNSET, NULL, B_FALSE},
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:82:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[10].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:82:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:84:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[11].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:84:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:86:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[12].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:86:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:88:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[13].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:88:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:90:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[14].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:90:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:92:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[15].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:92:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:94:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[16].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:94:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:96:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[17].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:96:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:98:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[18].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:98:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:100:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[19].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:100:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:102:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[20].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:102:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:104:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[21].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:104:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:106:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'inetd_properties[22].ip_value.iv_int')
     #define NULL ((void *)0)
                  ^
    ../common/inetsvc.c:106:25: note: in expansion of macro 'NULL'
          B_TRUE, IVE_UNSET, NULL, B_FALSE},
                             ^~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 3 months ago

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

git commit 6afa3d1d6776a3db46447deaa893bd35c9b53c0a

commit  6afa3d1d6776a3db46447deaa893bd35c9b53c0a
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-03T19:49:16.000Z

    11147 libinetsvc: NULL pointer errrors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF