projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- fix peer to notify
[oweals/gnunet.git]
/
src
/
mesh
/
mesh_common.c
diff --git
a/src/mesh/mesh_common.c
b/src/mesh/mesh_common.c
index eb8ad764bfaf6ba09f1c375d859efc57e9a705da..c986213f107b3215b5556a975b47657756c7d7f6 100644
(file)
--- 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)
}
+const struct GNUNET_HashCode *
+GM_h2hc (const struct GNUNET_MeshHash *id)
+{
+ static struct GNUNET_HashCode hc;
+ memcpy (&hc, id, sizeof (*id));
+
+ return &hc;
+}
+
+
#if !defined(GNUNET_CULL_LOGGING)
const char *
GM_m2s (uint16_t m)