[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37117 - gnunet/src/social
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37117 - gnunet/src/social |
Date: |
Tue, 3 May 2016 22:04:26 +0200 |
Author: lynx
Date: 2016-05-03 22:04:26 +0200 (Tue, 03 May 2016)
New Revision: 37117
Modified:
gnunet/src/social/gnunet-social.c
Log:
make gnunet-social.c build: resolve listen() collision
Modified: gnunet/src/social/gnunet-social.c
===================================================================
--- gnunet/src/social/gnunet-social.c 2016-05-03 19:04:54 UTC (rev 37116)
+++ gnunet/src/social/gnunet-social.c 2016-05-03 20:04:26 UTC (rev 37117)
@@ -62,7 +62,7 @@
static char *place;
/** --listen */
-static int listen;
+static int flag_listen;
/** --method */
static char *method;
@@ -117,7 +117,7 @@
{'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 @@
{'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,8 +141,20 @@
{'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 @@
const char *help =
"enter/leave and send/receive messages in places of the social service";
const char *usage =
- "gnunet-social --place <pubkey> --host-enter [--listen]\n"
+ "gnunet-social --host-enter [--listen]\n"
"gnunet-social --place <pubkey> --host-leave\n"
"gnunet-social --place <pubkey> --host-announce --method <method_name>
--data <message_body>\n"
"\n"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37117 - gnunet/src/social,
gnunet <=