Project

General

Profile

Bug #11423

sa: NULL pointer errors

Added by Toomas Soome 3 months ago. Updated 3 months 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:

    sar.c: In function 'prthdg':
    sar.c:640:28: error: comparison between pointer and integer [-Werror]
      while ((ccc = fopt[jj++]) != NULL) {
                                ^~
    sar.c: In function 'prtopt':
    sar.c:1032:28: error: comparison between pointer and integer [-Werror]
      while ((ccc = fopt[jj++]) != NULL) {
                                ^~
    sar.c: In function 'prtavg':
    sar.c:1117:28: error: comparison between pointer and integer [-Werror]
      while ((ccc = fopt[jj++]) != NULL) {
                                ^~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 3 months ago

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

git commit b33ffbed882c3e46e1242f5768ff3dfa3a887e4c

commit  b33ffbed882c3e46e1242f5768ff3dfa3a887e4c
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-30T18:26:18.000Z

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

Also available in: Atom PDF