Project

General

Profile

Bug #11413

raidctl: NULL pointer errors

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

    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

History

#1

Updated by Electric Monk about 1 month ago

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

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>

Also available in: Atom PDF