diff options
Diffstat (limited to 'btimec.c')
-rw-r--r-- | btimec.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -38,6 +38,7 @@ main(int argc, char **argv) char *btimedhost; int readable = 0; int c; + int ret = 0; while ((c = getopt(argc, argv, "r")) != -1) { switch (c) { @@ -65,6 +66,7 @@ main(int argc, char **argv) } else { printf("%s: %u\n", btimedhost, bt); } + if (bt == 0) ret = 1; } - exit(0); + exit(ret); } |