chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prefork: consistently use -1 for "don't print errno"
[chiark-utils.git]
/
cprogs
/
prefork.c
diff --git
a/cprogs/prefork.c
b/cprogs/prefork.c
index 25639418fa9685fceb4cd6972b8318dd0185084f..aaac059e1bb3a739d64957ebdf5bf9b3fa9ae4c6 100644
(file)
--- a/
cprogs/prefork.c
+++ b/
cprogs/prefork.c
@@
-19,7
+19,7
@@
void vmsgcore(int estatus, int errnoval, const char *fmt, va_list al) {
if (logging) {
const char *fmt_use = fmt;
char *fmt_free = 0;
- if (errnoval) {
+ if (errnoval
!=-1
) {
r = asprintf(&fmt_free, "%s: %%m", fmt);
if (r) {
fmt_free = 0;