aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-06 13:49:41 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-06 13:49:41 +0000
commitdd6a5c01f4722950892ded7b44f22bcd2a416664 (patch)
treede36eb669d524577494300122720c69c1ba527f5 /src
parentc7c6d105dfed910ddb4fa3465137b425999a3928 (diff)
downloadgnunet-dd6a5c01f4722950892ded7b44f22bcd2a416664.tar.gz
gnunet-dd6a5c01f4722950892ded7b44f22bcd2a416664.zip
- fix unused variables
Diffstat (limited to 'src')
-rw-r--r--src/namestore/gnunet-service-namestore.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index 5584884d8..af5f84979 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -344,7 +344,6 @@ static void handle_lookup_name (void *cls,
344 char * name; 344 char * name;
345 uint32_t rid = 0; 345 uint32_t rid = 0;
346 uint32_t type = 0; 346 uint32_t type = 0;
347 int res;
348 347
349 if (ntohs (message->size) < sizeof (struct LookupNameMessage)) 348 if (ntohs (message->size) < sizeof (struct LookupNameMessage))
350 { 349 {
@@ -392,7 +391,7 @@ static void handle_lookup_name (void *cls,
392 lnc.record_type = type; 391 lnc.record_type = type;
393 lnc.name = name; 392 lnc.name = name;
394 lnc.zone = &ln_msg->zone; 393 lnc.zone = &ln_msg->zone;
395 res = GSN_database->iterate_records(GSN_database->cls, &ln_msg->zone, name, 0, &handle_lookup_name_it, &lnc); 394 GSN_database->iterate_records(GSN_database->cls, &ln_msg->zone, name, 0, &handle_lookup_name_it, &lnc);
396 395
397 GNUNET_SERVER_receive_done (client, GNUNET_OK); 396 GNUNET_SERVER_receive_done (client, GNUNET_OK);
398} 397}
@@ -510,7 +509,7 @@ send:
510 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message\n", "RECORD_PUT_RESPONSE"); 509 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message\n", "RECORD_PUT_RESPONSE");
511 rpr_msg.gns_header.header.type = htons (GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_PUT_RESPONSE); 510 rpr_msg.gns_header.header.type = htons (GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_PUT_RESPONSE);
512 rpr_msg.gns_header.header.size = htons (sizeof (struct RecordPutResponseMessage)); 511 rpr_msg.gns_header.header.size = htons (sizeof (struct RecordPutResponseMessage));
513 rpr_msg.gns_header.r_id = rp_msg->gns_header.r_id; 512 rpr_msg.gns_header.r_id = htonl (rid);
514 rpr_msg.op_result = htonl (res); 513 rpr_msg.op_result = htonl (res);
515 GNUNET_SERVER_notification_context_unicast (snc, nc->client, (const struct GNUNET_MessageHeader *) &rpr_msg, GNUNET_NO); 514 GNUNET_SERVER_notification_context_unicast (snc, nc->client, (const struct GNUNET_MessageHeader *) &rpr_msg, GNUNET_NO);
516 515
@@ -987,7 +986,7 @@ send:
987 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message\n", "RECORD_REMOVE_RESPONSE"); 986 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message\n", "RECORD_REMOVE_RESPONSE");
988 rrr_msg.gns_header.header.type = htons (GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_REMOVE_RESPONSE); 987 rrr_msg.gns_header.header.type = htons (GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_REMOVE_RESPONSE);
989 rrr_msg.gns_header.header.size = htons (sizeof (struct RecordRemoveResponseMessage)); 988 rrr_msg.gns_header.header.size = htons (sizeof (struct RecordRemoveResponseMessage));
990 rrr_msg.gns_header.r_id = rr_msg->gns_header.r_id; 989 rrr_msg.gns_header.r_id = htonl (rid);
991 rrr_msg.op_result = htonl (res); 990 rrr_msg.op_result = htonl (res);
992 GNUNET_SERVER_notification_context_unicast (snc, nc->client, (const struct GNUNET_MessageHeader *) &rrr_msg, GNUNET_NO); 991 GNUNET_SERVER_notification_context_unicast (snc, nc->client, (const struct GNUNET_MessageHeader *) &rrr_msg, GNUNET_NO);
993 992
@@ -1098,8 +1097,6 @@ static void handle_zone_to_name (void *cls,
1098 struct ZoneToNameCtx ztn_ctx; 1097 struct ZoneToNameCtx ztn_ctx;
1099 size_t msg_size = 0; 1098 size_t msg_size = 0;
1100 uint32_t rid = 0; 1099 uint32_t rid = 0;
1101 int res;
1102
1103 1100
1104 if (ntohs (message->size) != sizeof (struct ZoneToNameMessage)) 1101 if (ntohs (message->size) != sizeof (struct ZoneToNameMessage))
1105 { 1102 {
@@ -1136,7 +1133,7 @@ static void handle_zone_to_name (void *cls,
1136 GNUNET_h2s (&ztn_msg->value_zone)); 1133 GNUNET_h2s (&ztn_msg->value_zone));
1137 GNUNET_free (z_tmp); 1134 GNUNET_free (z_tmp);
1138 1135
1139 res = GSN_database->zone_to_name (GSN_database->cls, &ztn_msg->zone, &ztn_msg->value_zone, &handle_zone_to_name_it, &ztn_ctx); 1136 GSN_database->zone_to_name (GSN_database->cls, &ztn_msg->zone, &ztn_msg->value_zone, &handle_zone_to_name_it, &ztn_ctx);
1140 1137
1141 GNUNET_SERVER_receive_done (client, GNUNET_OK); 1138 GNUNET_SERVER_receive_done (client, GNUNET_OK);
1142} 1139}
@@ -1309,7 +1306,6 @@ static void handle_iteration_next (void *cls,
1309 struct GNUNET_NAMESTORE_ZoneIteration *zi; 1306 struct GNUNET_NAMESTORE_ZoneIteration *zi;
1310 struct ZoneIterationStopMessage * zis_msg = (struct ZoneIterationStopMessage *) message; 1307 struct ZoneIterationStopMessage * zis_msg = (struct ZoneIterationStopMessage *) message;
1311 uint32_t rid; 1308 uint32_t rid;
1312 int res;
1313 1309
1314 nc = client_lookup(client); 1310 nc = client_lookup(client);
1315 if (nc == NULL) 1311 if (nc == NULL)
@@ -1333,7 +1329,7 @@ static void handle_iteration_next (void *cls,
1333 } 1329 }
1334 1330
1335 zi->offset++; 1331 zi->offset++;
1336 res = GSN_database->iterate_records (GSN_database->cls, &zi->zone, NULL, zi->offset , &zone_iteration_proc, zi); 1332 GSN_database->iterate_records (GSN_database->cls, &zi->zone, NULL, zi->offset , &zone_iteration_proc, zi);
1337} 1333}
1338 1334
1339 1335