summaryrefslogtreecommitdiff
path: root/src/conversation
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/conversation
parent5b085881ab278a85c3ef3a1d91c58a5724a4e430 (diff)
Porting leftovers to new getopt API.
Diffstat (limited to 'src/conversation')
-rw-r--r--src/conversation/gnunet-conversation.c21
1 files changed, 14 insertions, 7 deletions
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;