From: Christian Grothoff Date: Sat, 22 Oct 2011 21:15:19 +0000 (+0000) Subject: remove unused options -- these bits were always set, no need to pass them X-Git-Tag: initial-import-from-subversion-38251~16334 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b57631e1030c15b2cebb0c1450fd883934477d8d;p=oweals%2Fgnunet.git remove unused options -- these bits were always set, no need to pass them --- diff --git a/src/core/core.h b/src/core/core.h index 5c0738ee4..71969c3e0 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -43,8 +43,6 @@ * transmitted to the client. */ #define GNUNET_CORE_OPTION_NOTHING 0 -#define GNUNET_CORE_OPTION_SEND_CONNECT 1 -#define GNUNET_CORE_OPTION_SEND_DISCONNECT 2 #define GNUNET_CORE_OPTION_SEND_STATUS_CHANGE 4 #define GNUNET_CORE_OPTION_SEND_FULL_INBOUND 8 #define GNUNET_CORE_OPTION_SEND_HDR_INBOUND 16 diff --git a/src/core/core_api.c b/src/core/core_api.c index 0de64869b..b903d73bb 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -1168,7 +1168,7 @@ reconnect (struct GNUNET_CORE_Handle *h) init = (struct InitMessage *) &cm[1]; init->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_INIT); init->header.size = htons (msize); - opt = GNUNET_CORE_OPTION_SEND_CONNECT | GNUNET_CORE_OPTION_SEND_DISCONNECT; + opt = 0; if (h->inbound_notify != NULL) { if (h->inbound_hdr_only) diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 742522369..146b251be 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c @@ -295,8 +295,7 @@ handle_client_init (void *cls, struct GNUNET_SERVER_Client *client, irm.reserved = htonl (0); irm.my_identity = GSC_my_identity; send_to_client (c, &irm.header, GNUNET_NO); - if (0 != (c->options & GNUNET_CORE_OPTION_SEND_CONNECT)) - GSC_SESSIONS_notify_client_about_sessions (c); + GSC_SESSIONS_notify_client_about_sessions (c); GNUNET_SERVER_receive_done (client, GNUNET_OK); }