Project

General

Profile

Actions

Bug #11413

closed

raidctl: NULL pointer errors

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build errors with NULL pointer:

    raidctl.c: In function 'main':
    raidctl.c:267:19: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
      if ((*yesexpr == (char)NULL) ||
                       ^
    raidctl.c:268:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
          (*yesstr == (char)NULL) ||
                      ^
    raidctl.c:269:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
          (*nostr == (char)NULL) ||
                     ^
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 4 years ago

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

git commit e44d26aaf9ca8988aa38cecb658a4bf2a5e4de1f

commit  e44d26aaf9ca8988aa38cecb658a4bf2a5e4de1f
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-26T05:47:49.000Z

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

Actions

Also available in: Atom PDF