11301 cpio: NULL pointer errors

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

Information
Toomas Soome
illumos-gate
11301
1f151b1...
Reviewers
general
cpio.c: In function 'ckopts':
cpio.c:1298:15: error: comparison between pointer and integer [-Werror]
   while (*t_p != NULL) {
               ^~
cpio.c: In function 'creat_spec':
cpio.c:1895:35: error: comparison between pointer and integer [-Werror]
   if (curdir != NULL && curdir[1] == NULL) {
                                   ^~
cpio.c: In function 'gethdr':
cpio.c:4676:16: error: comparison between pointer and integer [-Werror]
    if (*preptr != NULL) {
                ^~
cc1: all warnings being treated as errors

  
Garrett D'Amore
Peter Tribble
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...