Commit ba5d071a authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: exit 1 on error, not 0

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 2126ba16
......@@ -11,7 +11,7 @@ static int bare_time_get(TimeInternal *t)
if (sys_gettimeofday(&tv, NULL) < 0) {
PP_PRINTF("gettimeofday error");
sys_exit(0);
sys_exit(1);
}
t->seconds = tv.tv_sec;
t->nanoseconds = tv.tv_usec * 1000;
......@@ -29,7 +29,7 @@ static int bare_time_set(TimeInternal *t)
if (sys_settimeofday(&tv, NULL) < 0) {
PP_PRINTF("settimeofday error");
sys_exit(0);
sys_exit(1);
}
if (pp_verbose_time)
pp_printf("%s: %9li.%09li\n", __func__, tv.tv_sec, tv.tv_nsec);
......
......@@ -11,7 +11,7 @@ static int bare_time_get(TimeInternal *t)
if (sys_gettimeofday(&tv, NULL) < 0) {
PP_PRINTF("gettimeofday error");
sys_exit(0);
sys_exit(1);
}
t->seconds = tv.tv_sec;
t->nanoseconds = tv.tv_usec * 1000;
......@@ -29,7 +29,7 @@ static int bare_time_set(TimeInternal *t)
if (sys_settimeofday(&tv, NULL) < 0) {
PP_PRINTF("settimeofday error");
sys_exit(0);
sys_exit(1);
}
if (pp_verbose_time)
pp_printf("%s: %9li.%09li\n", __func__, tv.tv_sec, tv.tv_nsec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment