aboutsummaryrefslogtreecommitdiff
path: root/src/regex/gnunet-regex-simulation-profiler.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/regex/gnunet-regex-simulation-profiler.c
parent5b085881ab278a85c3ef3a1d91c58a5724a4e430 (diff)
downloadgnunet-421ad27103356b4a21636c76618bf374b2e10bc9.tar.gz
gnunet-421ad27103356b4a21636c76618bf374b2e10bc9.zip
Porting leftovers to new getopt API.
Diffstat (limited to 'src/regex/gnunet-regex-simulation-profiler.c')
-rw-r--r--src/regex/gnunet-regex-simulation-profiler.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/regex/gnunet-regex-simulation-profiler.c b/src/regex/gnunet-regex-simulation-profiler.c
index 025a70316..422e45565 100644
--- a/src/regex/gnunet-regex-simulation-profiler.c
+++ b/src/regex/gnunet-regex-simulation-profiler.c
@@ -691,13 +691,20 @@ run (void *cls,
691int 691int
692main (int argc, char *const *argv) 692main (int argc, char *const *argv)
693{ 693{
694 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 694 struct GNUNET_GETOPT_CommandLineOption options[] = {
695 {'t', "table", "TABLENAME", 695
696 gettext_noop ("name of the table to write DFAs"), 696 GNUNET_GETOPT_OPTION_STRING ('t',
697 1, &GNUNET_GETOPT_set_string, &table_name}, 697 "table",
698 {'p', "max-path-compression", "MAX_PATH_COMPRESSION", 698 "TABLENAME",
699 gettext_noop ("maximum path compression length"), 699 gettext_noop ("name of the table to write DFAs"),
700 1, &GNUNET_GETOPT_set_uint, &max_path_compression}, 700 &table_name),
701
702 GNUNET_GETOPT_OPTION_SET_UINT ('p',
703 "max-path-compression",
704 "MAX_PATH_COMPRESSION",
705 gettext_noop ("maximum path compression length"),
706 &max_path_compression),
707
701 GNUNET_GETOPT_OPTION_END 708 GNUNET_GETOPT_OPTION_END
702 }; 709 };
703 int ret; 710 int ret;