summaryrefslogtreecommitdiffstats
path: root/btimec.c
diff options
context:
space:
mode:
Diffstat (limited to 'btimec.c')
-rw-r--r--btimec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/btimec.c b/btimec.c
index 38f4fd6..f1d4518 100644
--- a/btimec.c
+++ b/btimec.c
@@ -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);
}