From 819f6bec8100683ef17ce13dd874d8534bf34e5a Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Thu, 24 Aug 2006 21:26:40 +0000 Subject: [PATCH] cleanup --- iodined.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iodined.c b/iodined.c index bf48f94..05e80e6 100644 --- a/iodined.c +++ b/iodined.c @@ -164,10 +164,10 @@ tunnel(int tun_fd, int dns_fd) return 0; } -extern char *__progname; - static void usage() { + extern char *__progname; + printf("Usage: %s [-v] [-h] [-f] [-u user] [-t chrootdir] [-d device] [-m mtu] [-l ip address to listen on] " "tunnel_ip topdomain\n", __progname); exit(2); @@ -175,6 +175,8 @@ usage() { static void help() { + extern char *__progname; + printf("iodine IP over DNS tunneling server\n"); printf("Usage: %s [-v] [-h] [-f] [-u user] [-t chrootdir] [-d device] [-m mtu] [-l ip address to listen on] " "tunnel_ip topdomain\n", __progname);