diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-17 14:24:13 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-17 14:26:07 +0100 |
commit | 421ad27103356b4a21636c76618bf374b2e10bc9 (patch) | |
tree | 27ffaeaa91219b4666de0a182ceefa5b46f8092f /src/cadet/test_cadet.c | |
parent | 5b085881ab278a85c3ef3a1d91c58a5724a4e430 (diff) | |
download | gnunet-421ad27103356b4a21636c76618bf374b2e10bc9.tar.gz gnunet-421ad27103356b4a21636c76618bf374b2e10bc9.zip |
Porting leftovers to new getopt API.
Diffstat (limited to 'src/cadet/test_cadet.c')
-rw-r--r-- | src/cadet/test_cadet.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c index 3586b26ac..a7304c3ee 100644 --- a/src/cadet/test_cadet.c +++ b/src/cadet/test_cadet.c | |||
@@ -962,12 +962,17 @@ main (int argc, char *argv[]) | |||
962 | char port_id[] = "test port"; | 962 | char port_id[] = "test port"; |
963 | 963 | ||
964 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 964 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { |
965 | {'t', "time", "short_time", | 965 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t', |
966 | gettext_noop ("set short timeout"), | 966 | "time", |
967 | GNUNET_YES, &GNUNET_GETOPT_set_relative_time, &short_time}, | 967 | "short_time", |
968 | {'m', "messages", "NUM_MESSAGES", | 968 | gettext_noop ("set short timeout"), |
969 | gettext_noop ("set number of messages to send"), | 969 | &short_time), |
970 | GNUNET_YES, &GNUNET_GETOPT_set_uint, &total_packets}, | 970 | |
971 | GNUNET_GETOPT_OPTION_SET_UINT ('m', | ||
972 | "messages", | ||
973 | "NUM_MESSAGES", | ||
974 | gettext_noop ("set number of messages to send"), | ||
975 | &total_packets), | ||
971 | 976 | ||
972 | GNUNET_GETOPT_OPTION_END | 977 | GNUNET_GETOPT_OPTION_END |
973 | }; | 978 | }; |