From eeea5809f752477f50fc159f5c2adbdeb29d0521 Mon Sep 17 00:00:00 2001 From: Carlo von lynX Date: Fri, 13 May 2016 07:33:16 +0000 Subject: [PATCH] social: minor fixes --- src/social/gnunet-service-social.c | 2 -- src/social/gnunet-social.c | 10 +++++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c index c379ff76b..079f1961c 100644 --- a/src/social/gnunet-service-social.c +++ b/src/social/gnunet-service-social.c @@ -1451,8 +1451,6 @@ client_recv_msg_proc_clear (void *cls, struct GNUNET_SERVER_Client *client, GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); return; } - struct Host *hst = (struct Host *) plc; - GNUNET_PSYC_slicer_clear (plc->slicer); GNUNET_SERVER_receive_done (client, GNUNET_OK); diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c index bb6f1e694..2d6990869 100644 --- a/src/social/gnunet-social.c +++ b/src/social/gnunet-social.c @@ -227,7 +227,7 @@ schedule_fail (void *cls) /** - * Schedule exit with succes result. + * Schedule exit with success result. */ static void exit_success () @@ -305,6 +305,7 @@ static void guest_leave () { struct GNUNET_PSYC_Environment *env = GNUNET_PSYC_env_create (); + // FIXME: wrong use of vars GNUNET_PSYC_env_add (env, GNUNET_PSYC_OP_SET, "_message", DATA2ARG ("Leaving.")); GNUNET_SOCIAL_guest_leave (gst, env, guest_left, NULL); @@ -1304,6 +1305,11 @@ main (int argc, char *const *argv) "gnunet-social --host-enter --ego [--follow] [--welcome | --deny]\n" "gnunet-social --host-reconnect --place [--follow] [--welcome | --deny]\n" "gnunet-social --host-leave --place \n" + "gnunet-social --host-assign --place --name --data \n" +// FIXME: some state ops not implemented yet (no hurry) +// "gnunet-social --host-augment --place --name --data \n" +// "gnunet-social --host-diminish --place --name --data \n" +// "gnunet-social --host-set --place --name --data \n" "gnunet-social --host-announce --place --method --data \n" "\n" "gnunet-social --guest-enter --place --peer --ego [--follow]\n" @@ -1315,8 +1321,6 @@ main (int argc, char *const *argv) "gnunet-social --history-replay --place --start --until [--method ]\n" "gnunet-social --history-replay-latest --place --limit [--method ]\n" "\n" - "gnunet-social --set --place --name --data \n" - "\n" "gnunet-social --look-at --place --name \n" "gnunet-social --look-for --place --name \n"; -- 2.25.1