11298 consadm: NULL pointer errors

Review Request #2044 - Created July 1, 2019 and submitted

Information
Toomas Soome
illumos-gate
11298
97da876...
Reviewers
general
../consadm.c: In function 'addtolist':
../consadm.c:397:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    buf[len - 1] = NULL; /* Clear carriage return */
                 ^
../consadm.c: In function 'removefromlist':
../consadm.c:460:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   value[len - 1] = NULL; /* Clear carriage return */
                  ^

  
Sebastian Wiedenroth
Andrew Stormont
Garrett D'Amore
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...