diff options
author | joerg <joerg@NetBSD.org> | 2020-11-12 22:23:16 +0000 |
---|---|---|
committer | joerg <joerg@NetBSD.org> | 2020-11-12 22:23:16 +0000 |
commit | da6a856c31649c6fc011d45d51542876e1b13539 (patch) | |
tree | a5261af3b8fa6a1c78bb76f6d22b65b1daf29d1f /warp/util.h | |
parent | 0b4c3861ae9de303c21256a9cc084c79c4fed743 (diff) | |
download | bsdgames-darwin-da6a856c31649c6fc011d45d51542876e1b13539.tar.gz bsdgames-darwin-da6a856c31649c6fc011d45d51542876e1b13539.tar.zst bsdgames-darwin-da6a856c31649c6fc011d45d51542876e1b13539.zip |
Avoid common symbols. Use __dead.
Diffstat (limited to 'warp/util.h')
-rw-r--r-- | warp/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 *); |