diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2014-10-31 13:29:43 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2014-10-31 13:29:43 +0000 |
commit | c3c9d9dbad2cd6645037029656c4a7339bda69da (patch) | |
tree | 981ebf8abdbb4c35f9019cb969223d05a1a983cc /usr.bin | |
parent | 0c40c5af2245d7baf1a5f807f011d981195b59db (diff) |
redirect error output to stderr instead of stdout
stderr is always unbuffered by default, so zap fflush(3) its no longer makes any sense here
reminded by espie@
OK espie@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/engine.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/make/engine.c b/usr.bin/make/engine.c index 8f940474dad..541765d7cb7 100644 --- a/usr.bin/make/engine.c +++ b/usr.bin/make/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.48 2014/05/30 21:19:57 espie Exp $ */ +/* $OpenBSD: engine.c,v 1.49 2014/10/31 13:29:42 gsoares Exp $ */ /* * Copyright (c) 2012 Marc Espie. * @@ -274,10 +274,9 @@ Job_Touch(GNode *gn) if (set_times(file) == -1){ if (rewrite_time(file) == -1) { - (void)fprintf(stdout, + (void)fprintf(stderr, "*** couldn't touch %s: %s", file, strerror(errno)); - (void)fflush(stdout); } } } |