From da6a856c31649c6fc011d45d51542876e1b13539 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 12 Nov 2020 22:23:16 +0000 Subject: Avoid common symbols. Use __dead. --- warp/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'warp/util.h') diff --git a/warp/util.h b/warp/util.h index 444e0866..ba7dbe3d 100644 --- a/warp/util.h +++ b/warp/util.h @@ -17,7 +17,7 @@ /* we get fractions of seconds from calling ftime on timebuf */ -EXT struct timespec timebuf; +extern struct timespec timebuf; #define roundsleep(x) (clock_gettime(CLOCK_REALTIME, &timebuf),sleep(timebuf.tv_nsec > 5000000000 ?x+1:x)) #define waiting 0 @@ -37,7 +37,7 @@ EXT int len_last_line_got INIT(0); void util_init(void); void movc3(int, char *, char *); -void no_can_do(const char *); +__dead void no_can_do(const char *); int exdis(int); void *safemalloc(size_t size); char *safecpy(char *, const char *, size_t); @@ -46,6 +46,6 @@ char *instr(const char *, const char *); #ifdef SETUIDGID int eaccess(const char *, mode_t); #endif -void prexit(const char *); +__dead void prexit(const char *); char *savestr(const char *); char *getval(const char *, const char *); -- cgit v1.2.3-56-ge451