From 5a530cf98c2cf52cc476bd798ed61d5a1100e1b9 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 15 Sep 2014 16:26:06 +0100 Subject: Add arg.h --- ratatox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ratatox.c') diff --git a/ratatox.c b/ratatox.c index 332b876..ed0b57f 100644 --- a/ratatox.c +++ b/ratatox.c @@ -17,6 +17,7 @@ #include +#include "arg.h" #include "queue.h" #define LEN(x) (sizeof (x) / sizeof *(x)) @@ -63,6 +64,8 @@ struct request { TAILQ_ENTRY(request) entry; }; +char *argv0; + static TAILQ_HEAD(friendhead, friend) friendhead = TAILQ_HEAD_INITIALIZER(friendhead); static TAILQ_HEAD(reqhead, request) reqhead = TAILQ_HEAD_INITIALIZER(reqhead); @@ -791,7 +794,7 @@ loop(void) } int -main(void) +main(int argc, char *argv[]) { printbanner(); toxinit(); -- cgit v1.2.3