Remove common

This commit is contained in:
Quentin Rameau
2019-02-19 05:33:04 +01:00
parent 21fcbc004e
commit 8d5e2b3a40
5 changed files with 21 additions and 28 deletions
+12
View File
@@ -141,6 +141,7 @@ typedef struct {
} SiteSpecific;
/* Surf */
static void die(const char *errstr, ...);
static void usage(void);
static void setup(void);
static void sigchld(int unused);
@@ -301,6 +302,17 @@ static ParamName loadfinished[] = {
/* configuration, allows nested code to access above variables */
#include "config.h"
void
die(const char *errstr, ...)
{
va_list ap;
va_start(ap, errstr);
vfprintf(stderr, errstr, ap);
va_end(ap);
exit(1);
}
void
usage(void)
{