11391 keyserv: NULL pointer errors

Review Request #2114 - Created July 10, 2019 and updated

Information
Toomas Soome
illumos-gate
11391
aa8c295...
Reviewers
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdio_iso.h:53:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/stdio.h:82,
                 from chkey_common.c:26:
chkey_common.c: In function 'update_ldap_attr':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 5 of '__ns_ldap_addAttr' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
chkey_common.c:684:15: note: in expansion of macro 'NULL'
        credp, NULL, &errorp);
               ^~~~
In file included from chkey_common.c:37:0:
/code/illumos-gate/usr/src/lib/libsldap/common/ns_sldap.h:734:6: note: expected 'int' but argument is of type 'void *'
 int  __ns_ldap_addAttr(
      ^~~~~~~~~~~~~~~~~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdio_iso.h:53:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/stdio.h:82,
                 from chkey_common.c:26:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 5 of '__ns_ldap_repAttr' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
chkey_common.c:688:15: note: in expansion of macro 'NULL'
        credp, NULL, &errorp);
               ^~~~
In file included from chkey_common.c:37:0:
/code/illumos-gate/usr/src/lib/libsldap/common/ns_sldap.h:750:6: note: expected 'int' but argument is of type 'void *'
 int  __ns_ldap_repAttr(
      ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

  
Andy Fiddaman
Ship It!
Loading...