From 766d936d60d11cef4d8b126cdd781a1828ae9964 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 4 Jan 2016 01:10:18 +0100 Subject: haiku MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/radharc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/radharc.c') diff --git a/src/radharc.c b/src/radharc.c index 968c96f..48538d9 100644 --- a/src/radharc.c +++ b/src/radharc.c @@ -15,6 +15,7 @@ * along with this program. If not, see . */ #include "settings.h" +#include "haiku.h" #include #include @@ -29,6 +30,8 @@ char *argv0 = NULL; /** * Exit if time the is before year 0 in J2000. + * + * @param The name of the process, `NULL` if unknown. */ #if defined(TIMETRAVELLER) static void @@ -36,7 +39,7 @@ check_timetravel(const char *argv0) { struct timespec now; if (clock_gettime(CLOCK_REALTIME, &now)) - perror(argv0 ? argv0 : "radharc"), exit(1); + haiku(argv0 ? argv0 : "radharc"), exit(1); if (now.tv_nsec < (time_t)946728000L) fprintf(stderr, "We have detected that you are a time-traveller" "(or your clock is not configured correctly.)" -- cgit v1.2.3-70-g09d2