dead assignment
authorChristian Grothoff <christian@grothoff.org>
Sun, 25 Oct 2009 17:52:49 +0000 (17:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 25 Oct 2009 17:52:49 +0000 (17:52 +0000)
src/peerinfo/peerinfo_api.c

index d02ec3f2d6c3bedc9422859667f8fd10ba364107..f1fa4845aa3544f1186d48ce91fe388870b8e18e 100644 (file)
@@ -234,7 +234,6 @@ GNUNET_PEERINFO_for_all (const struct GNUNET_CONFIGURATION_Handle *cfg,
   struct ListAllPeersMessage *lapm;
   struct ListPeerMessage *lpm;
   struct InfoContext *ihc;
-  size_t hs;
 
   client = GNUNET_CLIENT_connect (sched, "peerinfo", cfg);
   if (client == NULL)
@@ -253,14 +252,14 @@ GNUNET_PEERINFO_for_all (const struct GNUNET_CONFIGURATION_Handle *cfg,
   if (peer == NULL)
     {
       lapm = (struct ListAllPeersMessage *) &ihc[1];
-      lapm->header.size = htons (hs = sizeof (struct ListAllPeersMessage));
+      lapm->header.size = htons (sizeof (struct ListAllPeersMessage));
       lapm->header.type = htons (GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL);
       lapm->trust_change = htonl (trust_delta);
     }
   else
     {
       lpm = (struct ListPeerMessage *) &ihc[1];
-      lpm->header.size = htons (hs = sizeof (struct ListPeerMessage));
+      lpm->header.size = htons (sizeof (struct ListPeerMessage));
       lpm->header.type = htons (GNUNET_MESSAGE_TYPE_PEERINFO_GET);
       lpm->trust_change = htonl (trust_delta);
       memcpy (&lpm->peer, peer, sizeof (struct GNUNET_PeerIdentity));