summaryrefslogtreecommitdiff
path: root/src/dv/gnunet-dv.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-17 14:24:13 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-17 14:26:07 +0100
commit421ad27103356b4a21636c76618bf374b2e10bc9 (patch)
tree27ffaeaa91219b4666de0a182ceefa5b46f8092f /src/dv/gnunet-dv.c
parent5b085881ab278a85c3ef3a1d91c58a5724a4e430 (diff)
Porting leftovers to new getopt API.
Diffstat (limited to 'src/dv/gnunet-dv.c')
-rw-r--r--src/dv/gnunet-dv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dv/gnunet-dv.c b/src/dv/gnunet-dv.c
index d0917d363..cb40bb6d2 100644
--- a/src/dv/gnunet-dv.c
+++ b/src/dv/gnunet-dv.c
@@ -34,7 +34,7 @@ static struct GNUNET_DV_ServiceHandle *sh;
/**
* Was verbose specified?
*/
-static int verbose;
+static unsigned int verbose;
/**
@@ -161,10 +161,10 @@ main (int argc, char *const *argv)
{
int res;
- static const struct GNUNET_GETOPT_CommandLineOption options[] = {
- {'V', "verbose", NULL,
- gettext_noop ("verbose output"),
- 0, &GNUNET_GETOPT_set_one, &verbose},
+ struct GNUNET_GETOPT_CommandLineOption options[] = {
+
+ GNUNET_GETOPT_OPTION_VERBOSE (&verbose),
+
GNUNET_GETOPT_OPTION_END
};