aboutsummaryrefslogtreecommitdiffstats
path: root/nldev.c
diff options
context:
space:
mode:
Diffstat (limited to 'nldev.c')
-rw-r--r--nldev.c44
1 files changed, 2 insertions, 42 deletions
diff --git a/nldev.c b/nldev.c
index 72c9656..eab53ff 100644
--- a/nldev.c
+++ b/nldev.c
@@ -22,51 +22,11 @@
#include <linux/netlink.h>
#include "arg.h"
+#include "log.h"
char *argv0;
int listfd = -1;
-int dofork = 0, dodebug = 0;
-
-void
-edie(char *fmt, ...)
-{
- va_list fmtargs;
-
- va_start(fmtargs, fmt);
- vfprintf(stderr, fmt, fmtargs);
- va_end(fmtargs);
- fprintf(stderr, ": ");
-
- perror(NULL);
-
- exit(1);
-}
-
-void
-die(char *fmt, ...)
-{
- va_list fmtargs;
-
- va_start(fmtargs, fmt);
- vfprintf(stderr, fmt, fmtargs);
- va_end(fmtargs);
-
- exit(1);
-}
-
-void
-dbg(char *fmt, ...)
-{
- va_list fmtargs;
-
- if (dodebug) {
- fprintf(stderr, "%s: ", argv0);
- va_start(fmtargs, fmt);
- vfprintf(stderr, fmt, fmtargs);
- va_end(fmtargs);
- fprintf(stderr, "\n");
- }
-}
+int dofork = 0;
void
disableoom(void)