diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-10 09:52:43 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-10 09:52:43 +0000 |
commit | 8c699617fdbb02dfcd3a95a53d0087b5eb3a0653 (patch) | |
tree | 155bd436fd532945f23208ea4cc470e934d5ae1b /src/mesh/mesh_common.c | |
parent | 8d7a99a8f58f1e5be7424f8fdcf45d19f4526b12 (diff) | |
download | gnunet-8c699617fdbb02dfcd3a95a53d0087b5eb3a0653.tar.gz gnunet-8c699617fdbb02dfcd3a95a53d0087b5eb3a0653.zip |
- refactor
Diffstat (limited to 'src/mesh/mesh_common.c')
-rw-r--r-- | src/mesh/mesh_common.c | 10 |
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 | ||
80 | struct GNUNET_HashCode * | ||
81 | GM_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) |
81 | const char * | 91 | const char * |
82 | GM_m2s (uint16_t m) | 92 | GM_m2s (uint16_t m) |