Project

General

Profile

Actions

Bug #12535

closed

luxadm: NULL pointer errors

Added by Toomas Soome about 2 years ago. Updated about 2 years 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:

    qlgcupdate.c: In function 'q_qlgc_update':
    qlgcupdate.c:162: error: initialization makes integer from pointer without a cast
    qlgcupdate.c:163: error: initialization makes integer from pointer without a cast
    qlgcupdate.c: In function 'q_findversion':
    qlgcupdate.c:404: error: initialization makes integer from pointer without a cast
    qlgcupdate.c:405: error: initialization makes integer from pointer without a cast
    qlgcupdate.c: In function 'q_findfileversion':
    qlgcupdate.c:519: error: initialization makes integer from pointer without a cast
    qlgcupdate.c: In function 'emulex_fcodeversion':
    qlgcupdate.c:1331: error: passing argument 2 of 'memset' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/iso/string_iso.h:72: note: expected 'int' but argument is of type 'void *'
    *** Error code 1

    hotplug.c: In function 'h_print_list':
    hotplug.c:397: error: comparison between pointer and integer
    hotplug.c: In function 'hotplug':
    hotplug.c:552: error: assignment makes integer from pointer without a cast
    hotplug.c:690: error: assignment makes integer from pointer without a cast
    hotplug.c: In function 'h_print_logical_nodes':
    hotplug.c:2672: error: assignment makes integer from pointer without a cast
    hotplug.c:2698: error: assignment makes integer from pointer without a cast
    hotplug.c: In function 'h_print_list_warn':
    hotplug.c:2798: error: comparison between pointer and integer

    cc1: warnings being treated as errors
    fcalupdate.c: In function 'getbootdev':
    fcalupdate.c:635: error: passing argument 2 of 'memset' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/iso/string_iso.h:72: note: expected 'int' but argument is of type 'void *'

    cc1: warnings being treated as errors
    g_adm.c: In function 'adm_inquiry':
    g_adm.c:288: error: assignment makes integer from pointer without a cast
    g_adm.c: In function 'adm_forcelip':
    g_adm.c:485: error: assignment makes integer from pointer without a cast
    g_adm.c: In function 'adm_display_config':
    g_adm.c:576: error: assignment makes integer from pointer without a cast
    g_adm.c: In function 'display_socal_stats':
    g_adm.c:2320: error: comparison between pointer and integer
    g_adm.c:2321: error: comparison between pointer and integer
    g_adm.c:2328: error: comparison between pointer and integer
    g_adm.c: In function 'adm_display_err':
    g_adm.c:2616: error: comparison between pointer and integer
    g_adm.c:2617: error: comparison between pointer and integer
    g_adm.c:2624: error: comparison between pointer and integer
    g_adm.c: In function 'display_fc_disk':
    g_adm.c:4065: error: comparison between pointer and integer
    g_adm.c: In function 'mb_messages':
    g_adm.c:4873: error: comparison between pointer and integer
    g_adm.c:4882: error: comparison between pointer and integer

Actions #1

Updated by Electric Monk about 2 years ago

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

git commit 525fef19ebb4e2f27b3a0e5f2df600ade73fdc0c

commit  525fef19ebb4e2f27b3a0e5f2df600ade73fdc0c
Author: Toomas Soome <tsoome@me.com>
Date:   2020-04-29T16:24:22.000Z

    12535 luxadm: NULL pointer errors
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF