remove TAILQ_END and __dead hacks

This commit is contained in:
Christian Neukirchen 2014-02-23 15:49:58 +01:00
parent 8ddc90665e
commit 96af45583a
2 changed files with 3 additions and 9 deletions

View File

@ -219,7 +219,7 @@ sigchld_cb(int which)
errno = save_errno; errno = save_errno;
} }
__dead void void
usage(void) usage(void)
{ {
extern char *__progname; extern char *__progname;

View File

@ -21,13 +21,7 @@
#ifndef _CALMWM_H_ #ifndef _CALMWM_H_
#define _CALMWM_H_ #define _CALMWM_H_
/* ugly stuff */ /* prototypes for portable-included functions */
#ifndef TAILQ_END
#define TAILQ_END(head) NULL
#endif
#ifndef __dead
#define __dead
#endif
char *fgetln(FILE *, size_t *); char *fgetln(FILE *, size_t *);
long long strtonum(const char *, long long, long long, const char **); long long strtonum(const char *, long long, long long, const char **);
size_t strlcpy(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t);
@ -379,7 +373,7 @@ enum {
extern Atom cwmh[CWMH_NITEMS]; extern Atom cwmh[CWMH_NITEMS];
extern Atom ewmh[EWMH_NITEMS]; extern Atom ewmh[EWMH_NITEMS];
__dead void usage(void); void usage(void);
void client_applysizehints(struct client_ctx *); void client_applysizehints(struct client_ctx *);
void client_config(struct client_ctx *); void client_config(struct client_ctx *);