gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7807 - GNUnet/src/applications/identity


From: gnunet
Subject: [GNUnet-SVN] r7807 - GNUnet/src/applications/identity
Date: Sun, 26 Oct 2008 00:19:03 -0600 (MDT)

Author: grothoff
Date: 2008-10-26 00:19:02 -0600 (Sun, 26 Oct 2008)
New Revision: 7807

Modified:
   GNUnet/src/applications/identity/clientapi.c
Log:
code cleanup

Modified: GNUnet/src/applications/identity/clientapi.c
===================================================================
--- GNUnet/src/applications/identity/clientapi.c        2008-10-21 18:47:51 UTC 
(rev 7806)
+++ GNUnet/src/applications/identity/clientapi.c        2008-10-26 06:19:02 UTC 
(rev 7807)
@@ -209,22 +209,20 @@
           GNUNET_GE_BREAK (NULL, 0);
           GNUNET_free (reply);
           return GNUNET_SYSERR;
-        }
-      if (callback != NULL)
-        {
-          info = (CS_identity_peer_info_MESSAGE *) reply;
-          if (GNUNET_OK != callback (cls,
-                                     &info->peer,
-                                     &info[1],
-                                     ntohs (reply->size) -
-                                     sizeof (CS_identity_peer_info_MESSAGE),
-                                     GNUNET_ntohll (info->last_message),
-                                     ntohl (info->trust), ntohl (info->bpm)))
-            {
-              GNUNET_free (reply);
-              return GNUNET_SYSERR;
-            }
-        }
+        } 
+      info = (CS_identity_peer_info_MESSAGE *) reply;
+      if ( (callback != NULL) &&
+          (GNUNET_OK != callback (cls,
+                                  &info->peer,
+                                  &info[1],
+                                  ntohs (reply->size) -
+                                  sizeof (CS_identity_peer_info_MESSAGE),
+                                  GNUNET_ntohll (info->last_message),
+                                  ntohl (info->trust), ntohl (info->bpm))) )
+       {
+         GNUNET_free (reply);
+         return GNUNET_SYSERR;
+       }
       GNUNET_free (reply);
     }
   return GNUNET_SYSERR;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]