11152 pkcs11_kernel: NULL pointer errors

Review Request #1937 — Created June 1, 2019 and submitted

tsoome
illumos-gate
11152
7917d04...
general
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/pthread.h:36,
                 from ../common/kernelDigest.c:28:
../common/kernelDigest.c: In function 'C_DigestFinal':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'do_soft_digest' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../common/kernelDigest.c:614:20: note: in expansion of macro 'NULL'
        NULL, NULL, NULL, pDigest, pulDigestLen, OP_FINAL);
                    ^~~~
In file included from ../common/kernelEmulate.h:39:0,
                 from ../common/kernelDigest.c:34:
../common/kernelSoftCommon.h:48:7: note: expected 'CK_ULONG {aka long unsigned int}' but argument is of type 'void *'
 CK_RV do_soft_digest(void **s, CK_MECHANISM_PTR pMechanism, CK_BYTE_PTR pBuf,
       ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors


ptribble
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...