11303 cron: NULL pointer errors

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

Information
Toomas Soome
illumos-gate
11303
9863a0a...
Reviewers
general
crontab.c: In function 'copycron':
crontab.c:449:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *x = NULL;
        ^
crontab.c:465:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *x = NULL;
        ^
crontab.c:481:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *x = NULL;
        ^

cron.c: In function 'readcron':
cron.c:1170:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *tmp = NULL;
          ^
cron.c:1188:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *tmp = NULL;
          ^
cron.c:1202:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *tmp = NULL;
          ^
cron.c: In function 'process_msg':
cron.c:2842:18: error: comparison between pointer and integer [-Werror]
  if (pmsg->etype == NULL)
                  ^~

  
Garrett D'Amore
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...