Project

General

Profile

Bug #11397

mpathadm: NULL pointer errors

Added by Toomas Soome 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                     from /code/illumos-gate/proto/root_i386/usr/include/mpapi.h:62,
                     from mpathadm.c:34:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    mpathadm.c:192:18: note: in expansion of macro 'NULL'
      {0, 0, 0, 0, 0, NULL}
                      ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'objectRules[4].opCmd.multOpCmd')
     #define NULL ((void *)0)
                  ^
    mpathadm.c:192:18: note: in expansion of macro 'NULL'
      {0, 0, 0, 0, 0, NULL}
                      ^~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk about 2 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit ce5e7d21f9e2e48a2f9b5a23ffec805e334d513e

commit  ce5e7d21f9e2e48a2f9b5a23ffec805e334d513e
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-30T19:44:04.000Z

    11397 mpathadm: NULL pointer errors
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF