11453 zpool: NULL pointer errors

Review Request #2171 - Created July 11, 2019 and updated

Information
Toomas Soome
illumos-gate
11453
561cce6...
Reviewers
general
zpool_vdev.c: In function 'check_disk':
zpool_vdev.c:196:31: error: comparison between pointer and integer [-Werror]
      &err)) == NULL || *drive == NULL) {
                               ^~
zpool_vdev.c:216:13: error: comparison between pointer and integer [-Werror]
  if (*media == NULL) {
             ^~
zpool_vdev.c:238:23: error: comparison between pointer and integer [-Werror]
  for (i = 0; slice[i] != NULL; i++) {
                       ^~
zpool_vdev.c: In function 'check_device':
zpool_vdev.c:267:62: error: comparison between pointer and integer [-Werror]
  if ((desc = dm_get_descriptor_by_name(DM_ALIAS, dev, &err)) != NULL) {
                                                              ^~
cc1: all warnings being treated as errors

  
Loading...