summaryrefslogtreecommitdiff
path: root/ratatox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-15 16:26:06 +0100
committersin <sin@2f30.org>2014-09-15 16:26:06 +0100
commit5a530cf98c2cf52cc476bd798ed61d5a1100e1b9 (patch)
treec428cdb564cf071bf2015f53f055c83159abc4b5 /ratatox.c
parent12fca982dd5a33192f4b09fb11a8b17286cd5a2b (diff)
Add arg.h
Diffstat (limited to 'ratatox.c')
-rw-r--r--ratatox.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ratatox.c b/ratatox.c
index 332b876..ed0b57f 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -17,6 +17,7 @@
#include <tox/tox.h>
+#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();