summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/err.c')
-rw-r--r--lib/libc/gen/err.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/err.c b/lib/libc/gen/err.c
index 0ba584c..6db66d3 100644
--- a/lib/libc/gen/err.c
+++ b/lib/libc/gen/err.c
@@ -99,7 +99,7 @@ errc(int eval, int code, const char *fmt, ...)
void
verrc(int eval, int code, const char *fmt, va_list ap)
{
- if (err_file == 0)
+ if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL) {
@@ -124,7 +124,7 @@ errx(int eval, const char *fmt, ...)
void
verrx(int eval, const char *fmt, va_list ap)
{
- if (err_file == 0)
+ if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL)
@@ -164,7 +164,7 @@ warnc(int code, const char *fmt, ...)
void
vwarnc(int code, const char *fmt, va_list ap)
{
- if (err_file == 0)
+ if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL) {
@@ -186,7 +186,7 @@ warnx(const char *fmt, ...)
void
vwarnx(const char *fmt, va_list ap)
{
- if (err_file == 0)
+ if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL)
OpenPOWER on IntegriCloud