aboutsummaryrefslogtreecommitdiff
path: root/src/social/social_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/social/social_api.c')
-rw-r--r--src/social/social_api.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/social/social_api.c b/src/social/social_api.c
index f78cb9a85..a7fe0916f 100644
--- a/src/social/social_api.c
+++ b/src/social/social_api.c
@@ -893,7 +893,7 @@ handle_guest_enter_decision (void *cls,
893 struct GNUNET_SOCIAL_Guest *gst = cls; 893 struct GNUNET_SOCIAL_Guest *gst = cls;
894 894
895 struct GNUNET_PSYC_Message *pmsg = NULL; 895 struct GNUNET_PSYC_Message *pmsg = NULL;
896 if (ntohs (dcsn->header.size) <= sizeof (*dcsn) + sizeof (*pmsg)) 896 if (ntohs (dcsn->header.size) > sizeof (*dcsn))
897 pmsg = (struct GNUNET_PSYC_Message *) GNUNET_MQ_extract_nested_mh (dcsn); 897 pmsg = (struct GNUNET_PSYC_Message *) GNUNET_MQ_extract_nested_mh (dcsn);
898 898
899 if (NULL != gst->entry_dcsn_cb) 899 if (NULL != gst->entry_dcsn_cb)
@@ -1087,7 +1087,7 @@ place_disconnect (struct GNUNET_SOCIAL_Place *plc,
1087 struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (plc->mq); 1087 struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (plc->mq);
1088 if (NULL != env) 1088 if (NULL != env)
1089 { 1089 {
1090 GNUNET_MQ_notify_sent (env, (GNUNET_MQ_NotifyCallback) place_cleanup, plc); 1090 GNUNET_MQ_notify_sent (env, (GNUNET_SCHEDULER_TaskCallback) place_cleanup, plc);
1091 } 1091 }
1092 else 1092 else
1093 { 1093 {
@@ -1195,7 +1195,7 @@ host_connect (struct GNUNET_SOCIAL_Host *hst)
1195 GNUNET_MQ_handler_end () 1195 GNUNET_MQ_handler_end ()
1196 }; 1196 };
1197 1197
1198 plc->mq = GNUNET_CLIENT_connecT (plc->cfg, "social", 1198 plc->mq = GNUNET_CLIENT_connect (plc->cfg, "social",
1199 handlers, host_disconnected, hst); 1199 handlers, host_disconnected, hst);
1200 GNUNET_assert (NULL != plc->mq); 1200 GNUNET_assert (NULL != plc->mq);
1201 plc->tmit = GNUNET_PSYC_transmit_create (plc->mq); 1201 plc->tmit = GNUNET_PSYC_transmit_create (plc->mq);
@@ -1697,7 +1697,7 @@ guest_connect (struct GNUNET_SOCIAL_Guest *gst)
1697 GNUNET_MQ_handler_end () 1697 GNUNET_MQ_handler_end ()
1698 }; 1698 };
1699 1699
1700 plc->mq = GNUNET_CLIENT_connecT (plc->cfg, "social", 1700 plc->mq = GNUNET_CLIENT_connect (plc->cfg, "social",
1701 handlers, guest_disconnected, gst); 1701 handlers, guest_disconnected, gst);
1702 GNUNET_assert (NULL != plc->mq); 1702 GNUNET_assert (NULL != plc->mq);
1703 plc->tmit = GNUNET_PSYC_transmit_create (plc->mq); 1703 plc->tmit = GNUNET_PSYC_transmit_create (plc->mq);
@@ -2597,7 +2597,7 @@ app_connect (struct GNUNET_SOCIAL_App *app)
2597 GNUNET_MQ_handler_end () 2597 GNUNET_MQ_handler_end ()
2598 }; 2598 };
2599 2599
2600 app->mq = GNUNET_CLIENT_connecT (app->cfg, "social", 2600 app->mq = GNUNET_CLIENT_connect (app->cfg, "social",
2601 handlers, app_disconnected, app); 2601 handlers, app_disconnected, app);
2602 GNUNET_assert (NULL != app->mq); 2602 GNUNET_assert (NULL != app->mq);
2603 GNUNET_MQ_send_copy (app->mq, app->connect_env); 2603 GNUNET_MQ_send_copy (app->mq, app->connect_env);
@@ -2701,7 +2701,7 @@ GNUNET_SOCIAL_app_disconnect (struct GNUNET_SOCIAL_App *app,
2701 struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (app->mq); 2701 struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (app->mq);
2702 if (NULL != env) 2702 if (NULL != env)
2703 { 2703 {
2704 GNUNET_MQ_notify_sent (env, (GNUNET_MQ_NotifyCallback) app_cleanup, app); 2704 GNUNET_MQ_notify_sent (env, (GNUNET_SCHEDULER_TaskCallback) app_cleanup, app);
2705 } 2705 }
2706 else 2706 else
2707 { 2707 {