Project

General

Profile

Bug #11293

cfgadm: NULL pointer errors

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdio_iso.h:53:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/stdio.h:82,
                     from cfgadm.c:34:
    cfgadm.c: In function 'main':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'cfga_cmd_t {aka enum <anonymous>}' using type 'void *'
     #define NULL ((void *)0)
                  ^
    cfgadm.c:204:22: note: in expansion of macro 'NULL'
      cfga_cmd_t sc_opt = NULL;
                          ^~~~
    *** Error code 1
    dmake: Fatal error: Command failed for target `cfgadm'

#1

Updated by Electric Monk over 1 year ago

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

git commit beb02e13b243c53c69d40b808b9ce43bafe55b88

commit  beb02e13b243c53c69d40b808b9ce43bafe55b88
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-06T14:18:07.000Z

    11293 cfgadm: NULL pointer errors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF