aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-ecc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-30 00:21:56 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-30 00:21:56 +0000
commit7dc458f1c96853831b607c61572270d62efd86d2 (patch)
treebd6eb0244d155080fac1198f9455c184fd5df301 /src/util/gnunet-ecc.c
parentbeccfee0add2579a9beb65af41ac266f04635f3c (diff)
downloadgnunet-7dc458f1c96853831b607c61572270d62efd86d2.tar.gz
gnunet-7dc458f1c96853831b607c61572270d62efd86d2.zip
-doxygen, style
Diffstat (limited to 'src/util/gnunet-ecc.c')
-rw-r--r--src/util/gnunet-ecc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/gnunet-ecc.c b/src/util/gnunet-ecc.c
index a50aee82b..b44f9dfde 100644
--- a/src/util/gnunet-ecc.c
+++ b/src/util/gnunet-ecc.c
@@ -187,13 +187,16 @@ create_keys (const char *fn, const char *prefix)
187 187
188 188
189static void 189static void
190print_hex (char *msg, void *buf, size_t size) 190print_hex (const char *msg,
191 const void *buf,
192 size_t size)
191{ 193{
192 size_t i; 194 size_t i;
195
193 printf ("%s: ", msg); 196 printf ("%s: ", msg);
194 for (i = 0; i < size; i++) 197 for (i = 0; i < size; i++)
195 { 198 {
196 printf ("%02hhx", ((char *)buf)[i]); 199 printf ("%02hhx", ((const char *)buf)[i]);
197 } 200 }
198 printf ("\n"); 201 printf ("\n");
199} 202}