diff options
author | ngie <ngie@FreeBSD.org> | 2017-07-18 08:50:43 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-07-18 08:50:43 +0000 |
commit | 598a222a28dd78c960c3ea06d858fc7a699efe52 (patch) | |
tree | 1a65aa7de93efedfec354cf59255e3ca80577ede /lib/libc | |
parent | ac90a65f7f9eb147047357c5d838dcfdd3bf9b77 (diff) | |
download | FreeBSD-src-598a222a28dd78c960c3ea06d858fc7a699efe52.zip FreeBSD-src-598a222a28dd78c960c3ea06d858fc7a699efe52.tar.gz |
MFC r318695:
err(3): use `NULL`, aka `(void*)0` per POSIX instead of `(FILE *)0`
This is being done to aid humans and static analysis checkers.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/err.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/err.c b/lib/libc/gen/err.c index 3b32c3d..5c116672 100644 --- a/lib/libc/gen/err.c +++ b/lib/libc/gen/err.c @@ -97,7 +97,7 @@ void verrc(int eval, int code, const char *fmt, va_list ap) { if (err_file == NULL) - err_set_file((FILE *)0); + err_set_file(NULL); fprintf(err_file, "%s: ", _getprogname()); if (fmt != NULL) { vfprintf(err_file, fmt, ap); @@ -122,7 +122,7 @@ void verrx(int eval, const char *fmt, va_list ap) { if (err_file == NULL) - err_set_file((FILE *)0); + err_set_file(NULL); fprintf(err_file, "%s: ", _getprogname()); if (fmt != NULL) vfprintf(err_file, fmt, ap); @@ -162,7 +162,7 @@ void vwarnc(int code, const char *fmt, va_list ap) { if (err_file == NULL) - err_set_file((FILE *)0); + err_set_file(NULL); fprintf(err_file, "%s: ", _getprogname()); if (fmt != NULL) { vfprintf(err_file, fmt, ap); @@ -184,7 +184,7 @@ void vwarnx(const char *fmt, va_list ap) { if (err_file == NULL) - err_set_file((FILE *)0); + err_set_file(NULL); fprintf(err_file, "%s: ", _getprogname()); if (fmt != NULL) vfprintf(err_file, fmt, ap); |