Avoid common symbols. Use __dead.

This commit is contained in:
joerg 2020-11-12 22:23:16 +00:00
parent a7e74f3dc5
commit a5e6526bbc
5 changed files with 9 additions and 7 deletions

View File

@ -32,7 +32,7 @@ static char *getrealname(uid_t);
static char *skipinterp(const char *, const char *);
#endif
static void abort_interp(void);
__dead static void abort_interp(void);
void
intrp_init(char *tcbuf)

View File

@ -42,7 +42,7 @@ EXT char longlognam[128];
EXT char c INIT(' ');
void score_init(void);
void wscore(void);
__dead void wscore(void);
void display_status(void);
void wavescore(void);
void score(void);

View File

@ -8,8 +8,8 @@
void sig_init(void);
void mytstp(void);
void finalize(int status);
void sig_catcher(int signo);
__dead void finalize(int status);
__dead void sig_catcher(int signo);
#ifdef SIGTSTP
void cont_catcher(int x);
void stop_catcher(int sig);

View File

@ -21,6 +21,8 @@
#include "INTERN.h"
#include "util.h"
struct timespec timebuf;
void
util_init(void)
{

View File

@ -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 *);