coding style
authort3sserakt <t3ss@posteo.de>
Tue, 26 Jun 2018 13:11:08 +0000 (15:11 +0200)
committert3sserakt <t3ss@posteo.de>
Tue, 26 Jun 2018 13:11:08 +0000 (15:11 +0200)
src/cadet/gnunet-service-cadet_peer.c

index 53c51c27a95a508b1f1051efcf02f02c3e449e76..ac1ee59debefeb796c8c13e9cfc31377b3e732a7 100644 (file)
@@ -243,11 +243,17 @@ GCP_2s (const struct CadetPeer *cp)
   static char buf[5];
   char *ret;
 
-  if (NULL == cp || NULL == &cp->pid.public_key)
-      return "NULL";
+  if (NULL == cp || 
+      NULL == &cp->pid.public_key){
+    return "NULL";
+  }
+      
   ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key);
-  if (NULL == ret)
-      return "NULL";
+  
+  if (NULL == ret){
+    return "NULL";
+  }
+  
   strncpy (buf,
            ret,
            sizeof (buf) - 1);