Project

General

Profile

Actions

Bug #11391

closed

keyserv: NULL pointer errors

Added by Toomas Soome almost 5 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build errors with NULL pointer:

    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

Actions

Also available in: Atom PDF