Project

General

Profile

Bug #6563

fmtmsg.h should be simplified and neither define NULL nor _NULL

Added by Richard PALO over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2016-01-18
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

as part of 5218, fmtmsg.h showed a need to be simplified and not define
extraneous symbols, such as NULL (defined via stdio.h, stdlib.h or unistd.h)
and _NULL (an artefact to avoid pollluting namespace with the unnecessary NULL).

Instead of NULL, use directly ((void *)0) or perhaps '(void *)0'

At the same time this will make the header full look more like the POSIX defining one
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fmtmsg.h.html

History

#1

Updated by Electric Monk over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 4870e0a7381ec2ec57437062574e6ddc3dd48d7f

commit  4870e0a7381ec2ec57437062574e6ddc3dd48d7f
Author: Richard PALO <richard@NetBSD.org>
Date:   2016-02-05T18:35:27.000Z

    6582 initial reorg adding sys/null.h for 5218
    6487 clean up __STDC__ ifdefs in rpcsvc/dbm.h
    6563 fmtmsg.h should be simplified and neither define NULL nor _NULL
    Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Reviewed by: Robert Mustacci <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF