aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2015-07-19 14:31:25 +0200
committerTomasz Kramkowski <tk@the-tk.com>2015-07-19 14:31:25 +0200
commitd94dcc7b2d449ffd50a153c59d858fb35c156c32 (patch)
treecfe139882ed902916f3ac66cac309ad8360db663
parent9b9a0cff925d421e029b348951dd0ca309e604d6 (diff)
downloadc-stuff-d94dcc7b2d449ffd50a153c59d858fb35c156c32.tar.gz
c-stuff-d94dcc7b2d449ffd50a153c59d858fb35c156c32.tar.xz
c-stuff-d94dcc7b2d449ffd50a153c59d858fb35c156c32.zip
timer.c: argc check now prints errors to stderr
-rw-r--r--timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/timer.c b/timer.c
index 462aee9..3d43a7c 100644
--- a/timer.c
+++ b/timer.c
@@ -169,7 +169,7 @@ int main(int argc, char **argv)
error(1, 0, "Error: stdout is not a tty");
if (argc < 2) {
- printf("Not enough arguments.\n");
+ fprintf(stderr, "Not enough arguments.\n");
usage(argv[0]);
exit(1);
}