From 26a1ab5f0dd64c4a1395acf3627febe504f88ebc Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 10 Mar 2014 09:52:43 +0000 Subject: - add const --- src/mesh/mesh.h | 2 +- src/mesh/mesh_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/mesh.h b/src/mesh/mesh.h index 87af414e6..42d3e6462 100644 --- a/src/mesh/mesh.h +++ b/src/mesh/mesh.h @@ -329,7 +329,7 @@ GM_min_pid (uint32_t a, uint32_t b); * * @return A HashCode containing the original 256 bit hash right-padded with 0. */ -struct GNUNET_HashCode * +const struct GNUNET_HashCode * GM_h2hc (const struct GNUNET_MeshHash *id); /** diff --git a/src/mesh/mesh_common.c b/src/mesh/mesh_common.c index bd6c0949c..c986213f1 100644 --- a/src/mesh/mesh_common.c +++ b/src/mesh/mesh_common.c @@ -77,7 +77,7 @@ GM_min_pid (uint32_t a, uint32_t b) } -struct GNUNET_HashCode * +const struct GNUNET_HashCode * GM_h2hc (const struct GNUNET_MeshHash *id) { static struct GNUNET_HashCode hc; -- cgit v1.2.3