diff options
author | t3sserakt <t3ss@posteo.de> | 2018-06-26 15:11:08 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2018-06-26 15:11:08 +0200 |
commit | e56d5ecd373dd61bedb4f586decd3a19364527a0 (patch) | |
tree | 218d47e162f371439eb305e01782572c3bff19a9 /src/cadet/gnunet-service-cadet_peer.c | |
parent | 8790a0dbeae9be48306661f9639931b6cb5d6632 (diff) | |
download | gnunet-e56d5ecd373dd61bedb4f586decd3a19364527a0.tar.gz gnunet-e56d5ecd373dd61bedb4f586decd3a19364527a0.zip |
coding style
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 14 |
1 files 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) | |||
243 | static char buf[5]; | 243 | static char buf[5]; |
244 | char *ret; | 244 | char *ret; |
245 | 245 | ||
246 | if (NULL == cp || NULL == &cp->pid.public_key) | 246 | if (NULL == cp || |
247 | return "NULL"; | 247 | NULL == &cp->pid.public_key){ |
248 | return "NULL"; | ||
249 | } | ||
250 | |||
248 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key); | 251 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key); |
249 | if (NULL == ret) | 252 | |
250 | return "NULL"; | 253 | if (NULL == ret){ |
254 | return "NULL"; | ||
255 | } | ||
256 | |||
251 | strncpy (buf, | 257 | strncpy (buf, |
252 | ret, | 258 | ret, |
253 | sizeof (buf) - 1); | 259 | sizeof (buf) - 1); |