gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: coding style


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: coding style
Date: Tue, 26 Jun 2018 15:11:13 +0200

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new e56d5ecd3 coding style
e56d5ecd3 is described below

commit e56d5ecd373dd61bedb4f586decd3a19364527a0
Author: t3sserakt <address@hidden>
AuthorDate: Tue Jun 26 15:11:08 2018 +0200

    coding style
---
 src/cadet/gnunet-service-cadet_peer.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/cadet/gnunet-service-cadet_peer.c 
b/src/cadet/gnunet-service-cadet_peer.c
index 53c51c27a..ac1ee59de 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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