aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh_common.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-10 09:52:43 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-10 09:52:43 +0000
commit8c699617fdbb02dfcd3a95a53d0087b5eb3a0653 (patch)
tree155bd436fd532945f23208ea4cc470e934d5ae1b /src/mesh/mesh_common.c
parent8d7a99a8f58f1e5be7424f8fdcf45d19f4526b12 (diff)
downloadgnunet-8c699617fdbb02dfcd3a95a53d0087b5eb3a0653.tar.gz
gnunet-8c699617fdbb02dfcd3a95a53d0087b5eb3a0653.zip
- refactor
Diffstat (limited to 'src/mesh/mesh_common.c')
-rw-r--r--src/mesh/mesh_common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesh/mesh_common.c b/src/mesh/mesh_common.c
index eb8ad764b..bd6c0949c 100644
--- a/src/mesh/mesh_common.c
+++ b/src/mesh/mesh_common.c
@@ -77,6 +77,16 @@ GM_min_pid (uint32_t a, uint32_t b)
77} 77}
78 78
79 79
80struct GNUNET_HashCode *
81GM_h2hc (const struct GNUNET_MeshHash *id)
82{
83 static struct GNUNET_HashCode hc;
84 memcpy (&hc, id, sizeof (*id));
85
86 return &hc;
87}
88
89
80#if !defined(GNUNET_CULL_LOGGING) 90#if !defined(GNUNET_CULL_LOGGING)
81const char * 91const char *
82GM_m2s (uint16_t m) 92GM_m2s (uint16_t m)