10745 rlmod: NULL pointer errors

Review Request #1711 — Created April 12, 2019 and submitted

tsoome
illumos-gate
10745
9268b15...
general
../../common/io/rlmod.c: In function 'rlmodrmsg':
../../common/io/rlmod.c:891:13: error: return makes integer from pointer without a cast [-Werror=int-conversion]
      return (NULL);
             ^
../../common/io/rlmod.c:947:14: error: return makes integer from pointer without a cast [-Werror=int-conversion]
       return (NULL);
              ^
../../common/io/rlmod.c:981:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../common/io/rlmod.c: In function 'rlwinsetup':
../../common/io/rlmod.c:1057:25: error: comparison between pointer and integer [-Werror]
  if ((rlwinctl(q, mp1)) == NULL) {
                         ^~
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/io/rlmod.c:42:
../../common/io/rlmod.c: In function 'rlmodwioctl':
../../common/sys/null.h:32:14: error: passing argument 3 of 'miocack' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/io/rlmod.c:1252:18: note: in expansion of macro 'NULL'
   miocack(q, mp, NULL, 0);
                  ^~~~
In file included from ../../common/io/rlmod.c:45:0:
../../common/sys/strsun.h:63:13: note: expected 'int' but argument is of type 'void *'
 extern void miocack(queue_t *, mblk_t *, int, int);
             ^~~~~~~
cc1: all warnings being treated as errors


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

Status: Closed (submitted)

Loading...