Project

General

Profile

Bug #11383

listen: 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:

    lsdbf.c: In function 'scan_line':
    lsdbf.c:535:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:543:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:567:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:575:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:583:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:591:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:599:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:607:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:661:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c:701:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *p = NULL;
         ^
    lsdbf.c: In function 'pushmod':
    lsdbf.c:917:17: error: comparison between pointer and integer [-Werror]
      if (!mp || *mp == NULL) {
                     ^~
    cc1: all warnings being treated as errors

History

#1

Updated by Toomas Soome 3 months ago

  • Subject changed from listen: NULL poinnter errors to listen: NULL pointer errors
#2

Updated by Electric Monk 3 months ago

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

git commit 1a3a3bd4960cef8c34aa04b4daa125a5efc415f3

commit  1a3a3bd4960cef8c34aa04b4daa125a5efc415f3
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-18T06:04:24.000Z

    11383 listen: NULL pointer errors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF