Project

General

Profile

Bug #11434

stmsboot: NULL pointer errors

Added by Toomas Soome 5 days ago.

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

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    stmsboot_util.c: In function 'parse_args':
    stmsboot_util.c:414:36: error: comparison between pointer and integer [-Werror]
        if ((strncmp(drvlimit, "fp", 2) == NULL) &&
                                        ^~
    stmsboot_util.c:415:37: error: comparison between pointer and integer [-Werror]
            (strncmp(drvlimit, "mpt", 3) == NULL) &&
                                         ^~
    stmsboot_util.c:416:41: error: comparison between pointer and integer [-Werror]
            (strncmp(drvlimit, "mpt_sas", 7) == NULL) &&
                                             ^~
    stmsboot_util.c:417:38: error: comparison between pointer and integer [-Werror]
            (strncmp(drvlimit, "pmcs", 4) == NULL)) {
                                          ^~
    cc1: all warnings being treated as errors

Also available in: Atom PDF