From: Carlo von lynX Date: Tue, 3 May 2016 20:04:26 +0000 (+0000) Subject: make gnunet-social.c build: resolve listen() collision X-Git-Tag: initial-import-from-subversion-38251~921 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4b7fe4b4a5a456cfb6d85021326cb2c1b2665a08;p=oweals%2Fgnunet.git make gnunet-social.c build: resolve listen() collision --- diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c index 295049fee..e9a5a13b7 100644 --- a/src/social/gnunet-social.c +++ b/src/social/gnunet-social.c @@ -62,7 +62,7 @@ static char *op_history_replay_latest; static char *place; /** --listen */ -static int listen; +static int flag_listen; /** --method */ static char *method; @@ -117,7 +117,7 @@ main (int argc, char *const *argv) {'l', "listen", NULL, gettext_noop ("listen for incoming messages"), - GNUNET_NO, &GNUNET_GETOPT_set_one, &listen}, + GNUNET_NO, &GNUNET_GETOPT_set_one, &flag_listen}, {'m', "method", "METHOD_NAME", gettext_noop ("method name to transmit"), @@ -125,11 +125,11 @@ main (int argc, char *const *argv) {'d', "data", "DATA", gettext_noop ("message body to transmit"), - GNUNET_YES, &GNUNET_GETOPT_set_string, &method}, + GNUNET_YES, &GNUNET_GETOPT_set_string, &data}, {'p', "prefix", "METHOD_PREFIX", gettext_noop ("method prefix filter for history replay"), - GNUNET_YES, &GNUNET_GETOPT_set_string, &method}, + GNUNET_YES, &GNUNET_GETOPT_set_string, &prefix}, {'s', "start", NULL, gettext_noop ("start message ID for history replay"), @@ -141,7 +141,19 @@ main (int argc, char *const *argv) {'n', "limit", NULL, gettext_noop ("number of messages to replay from history"), - GNUNET_NO, &GNUNET_GETOPT_set_ulong, &end}, + GNUNET_NO, &GNUNET_GETOPT_set_ulong, &limit}, + + {'C', "host-enter", NULL, + gettext_noop ("create a place for nyms to join"), + GNUNET_NO, &GNUNET_GETOPT_set_one, &op_host_enter}, + +/** --host-leave */ +/** --host-announce */ +/** --guest-enter */ +/** --guest-leave */ +/** --guest-talk */ +/** --history-replay */ +/** --history-replay-latest */ GNUNET_GETOPT_OPTION_END }; @@ -152,7 +164,7 @@ main (int argc, char *const *argv) const char *help = "enter/leave and send/receive messages in places of the social service"; const char *usage = - "gnunet-social --place --host-enter [--listen]\n" + "gnunet-social --host-enter [--listen]\n" "gnunet-social --place --host-leave\n" "gnunet-social --place --host-announce --method --data \n" "\n"