aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_api_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/cadet_api_helper.c')
-rw-r--r--src/cadet/cadet_api_helper.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/cadet/cadet_api_helper.c b/src/cadet/cadet_api_helper.c
index 78e5eb45c..52aec6cc9 100644
--- a/src/cadet/cadet_api_helper.c
+++ b/src/cadet/cadet_api_helper.c
@@ -41,15 +41,14 @@
41 * @return A GNUNET_HashCode usable for the new CADET API. 41 * @return A GNUNET_HashCode usable for the new CADET API.
42 */ 42 */
43const struct GNUNET_HashCode * 43const struct GNUNET_HashCode *
44GC_u2h(uint32_t port) 44GC_u2h (uint32_t port)
45{ 45{
46 static struct GNUNET_HashCode hash; 46 static struct GNUNET_HashCode hash;
47 47
48 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, 48 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
49 "This is a transitional function, use proper crypto hashes as CADET ports\n"); 49 "This is a transitional function, use proper crypto hashes as CADET ports\n");
50 GNUNET_CRYPTO_hash(&port, 50 GNUNET_CRYPTO_hash (&port,
51 sizeof(port), 51 sizeof(port),
52 &hash); 52 &hash);
53 return &hash; 53 return &hash;
54} 54}
55