Project

General

Profile

Actions

Bug #11389

closed

logadm: NULL pointer errors

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

    main.c: In function 'rotateto':
    main.c:834:38: error: comparison between pointer and integer [-Werror]
      if (n == 0 && opts_count(opts, "c") != NULL) {
                                          ^~
    main.c: In function 'docopytruncate':
    main.c:1115:29: error: comparison between pointer and integer [-Werror]
      if (opts_count(opts, "vn") != NULL) {
                                 ^~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 3 years ago

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

git commit cd76e30f6fbd14ce10675906631d3f1233c2dcac

commit  cd76e30f6fbd14ce10675906631d3f1233c2dcac
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-19T18:55:50.000Z

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

Actions

Also available in: Atom PDF