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/conversation/gnunet-conversation.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/conversation') diff --git a/src/conversation/gnunet-conversation.c b/src/conversation/gnunet-conversation.c index 925db4665..c5275c0de 100644 --- a/src/conversation/gnunet-conversation.c +++ b/src/conversation/gnunet-conversation.c @@ -1265,13 +1265,20 @@ run (void *cls, int main (int argc, char *const *argv) { - static const struct GNUNET_GETOPT_CommandLineOption options[] = { - {'e', "ego", "NAME", - gettext_noop ("sets the NAME of the ego to use for the phone (and name resolution)"), - 1, &GNUNET_GETOPT_set_string, &ego_name}, - {'p', "phone", "LINE", - gettext_noop ("sets the LINE to use for the phone"), - 1, &GNUNET_GETOPT_set_string, &line}, + struct GNUNET_GETOPT_CommandLineOption options[] = { + + GNUNET_GETOPT_OPTION_STRING ('e', + "ego", + "NAME", + gettext_noop ("sets the NAME of the ego to use for the phone (and name resolution)"), + &ego_name), + + GNUNET_GETOPT_OPTION_STRING ('p', + "phone", + "LINE", + gettext_noop ("sets the LINE to use for the phone"), + &line), + GNUNET_GETOPT_OPTION_END }; int ret; -- cgit v1.2.3