From 421ad27103356b4a21636c76618bf374b2e10bc9 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 17 Mar 2017 14:24:13 +0100 Subject: Porting leftovers to new getopt API. --- src/regex/gnunet-regex-simulation-profiler.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/regex/gnunet-regex-simulation-profiler.c') 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, int main (int argc, char *const *argv) { - static const struct GNUNET_GETOPT_CommandLineOption options[] = { - {'t', "table", "TABLENAME", - gettext_noop ("name of the table to write DFAs"), - 1, &GNUNET_GETOPT_set_string, &table_name}, - {'p', "max-path-compression", "MAX_PATH_COMPRESSION", - gettext_noop ("maximum path compression length"), - 1, &GNUNET_GETOPT_set_uint, &max_path_compression}, + struct GNUNET_GETOPT_CommandLineOption options[] = { + + GNUNET_GETOPT_OPTION_STRING ('t', + "table", + "TABLENAME", + gettext_noop ("name of the table to write DFAs"), + &table_name), + + GNUNET_GETOPT_OPTION_SET_UINT ('p', + "max-path-compression", + "MAX_PATH_COMPRESSION", + gettext_noop ("maximum path compression length"), + &max_path_compression), + GNUNET_GETOPT_OPTION_END }; int ret; -- cgit v1.2.3