From fef8c5c79d628ac0823fdae238fd0b70a1f1eb94 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 15 Mar 2017 21:03:50 +0100 Subject: porting. --- src/dns/gnunet-dns-redirector.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'src/dns/gnunet-dns-redirector.c') diff --git a/src/dns/gnunet-dns-redirector.c b/src/dns/gnunet-dns-redirector.c index 89929815a..0469af732 100644 --- a/src/dns/gnunet-dns-redirector.c +++ b/src/dns/gnunet-dns-redirector.c @@ -52,7 +52,7 @@ static int ret; /** * Selected level of verbosity. */ -static int verbosity; +static unsigned int verbosity; /** @@ -230,13 +230,19 @@ run (void *cls, char *const *args, const char *cfgfile, int main (int argc, char *const *argv) { - static const struct GNUNET_GETOPT_CommandLineOption options[] = { - {'4', "ipv4", "IPV4", - gettext_noop ("set A records"), - 1, &GNUNET_GETOPT_set_string, &n4}, - {'6', "ipv4", "IPV6", - gettext_noop ("set AAAA records"), - 1, &GNUNET_GETOPT_set_string, &n6}, + struct GNUNET_GETOPT_CommandLineOption options[] = { + GNUNET_GETOPT_OPTION_STRING ('4', + "ipv4", + "IPV4", + gettext_noop ("set A records"), + &n4), + + GNUNET_GETOPT_OPTION_STRING ('6', + "ipv4", + "IPV6", + gettext_noop ("set AAAA records"), + &n6), + GNUNET_GETOPT_OPTION_VERBOSE (&verbosity), GNUNET_GETOPT_OPTION_END }; -- cgit v1.2.3