10716 usbvc: NULL pointer errors

Review Request #1682 - Created April 10, 2019 and submitted

Information
Toomas Soome
illumos-gate
10716
9707c23...
Reviewers
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/sys/t_lock.h:38,
                 from ../../common/sys/conf.h:37,
                 from ../../common/sys/usb/usba.h:34,
                 from ../../common/io/usb/clients/video/usbvc/usbvc.c:153:
../../common/io/usb/clients/video/usbvc/usbvc.c: In function 'usbvc_read':
../../common/sys/null.h:32:14: error: passing argument 3 of 'usbvc_start_isoc_polling' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/io/usb/clients/video/usbvc/usbvc.c:811:49: note: in expansion of macro 'NULL'
   if (usbvc_start_isoc_polling(usbvcp, strm_if, NULL) !=
                                                 ^~~~
In file included from ../../common/io/usb/clients/video/usbvc/usbvc.c:156:0:
../../common/sys/usb/clients/video/usbvc/usbvc_var.h:369:5: note: expected 'uchar_t {aka unsigned char}' but argument is of type 'void *'
 int usbvc_start_isoc_polling(usbvc_state_t *, usbvc_stream_if_t *, uchar_t);
     ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

  
Robert Mustacchi
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...