10741 ufs: NULL pointer errors

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

tsoome
illumos-gate
10741
63c3dcc...
general
../../common/fs/ufs/ufs_alloc.c: In function 'blkpref':
../../common/fs/ufs/ufs_alloc.c:579:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../common/fs/ufs/ufs_alloc.c: In function 'hashalloc':
../../common/fs/ufs/ufs_alloc.c:884:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../common/fs/ufs/ufs_alloc.c: In function 'fragextend':
../../common/fs/ufs/ufs_alloc.c:906:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../common/fs/ufs/ufs_alloc.c:911:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../common/fs/ufs/ufs_alloc.c:919:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../common/fs/ufs/ufs_alloc.c:929:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../common/fs/ufs/ufs_alloc.c:935:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^

../../common/fs/ufs/ufs_dir.c: In function 'ufs_dircheckforname':
../../common/fs/ufs/ufs_dir.c:1196:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  caching = NULL;
          ^

../../common/fs/ufs/ufs_acl.c: In function 'ufs_acl_access':
../../common/fs/ufs/ufs_acl.c:652:28: error: pointer/integer type mismatch in conditional expression [-Werror]
      sp->aclass.acl_ismask : NULL;
                            ^
../../common/fs/ufs/ufs_acl.c:651:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  ismask = sp->aclass.acl_ismask ?
         ^
cc1: all warnings being treated as errors


andy_js
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...