aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-08 14:14:01 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-08 14:14:01 +0000
commit3a60024e089a38aa32fcafece7c257672abf4608 (patch)
treea3c36e0a87766bd85e450bd1b9c8766965a34710 /src/gns/gnunet-gns.c
parent588b14ec0ec5c59d0dad37dcc0841c1ff0b2942c (diff)
downloadgnunet-3a60024e089a38aa32fcafece7c257672abf4608.tar.gz
gnunet-3a60024e089a38aa32fcafece7c257672abf4608.zip
-GNS service api change, replaced complicated buggy code
Diffstat (limited to 'src/gns/gnunet-gns.c')
-rw-r--r--src/gns/gnunet-gns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c
index 6a9241897..8c087defe 100644
--- a/src/gns/gnunet-gns.c
+++ b/src/gns/gnunet-gns.c
@@ -60,9 +60,9 @@ do_shutdown (void *cls,
60 60
61 61
62static void 62static void
63process_shorten_result(void* cls, const char* nlong, const char* nshort) 63process_shorten_result(void* cls, const char* nshort)
64{ 64{
65 printf("%s shortened to %s\n", nlong, nshort); 65 printf("%s shortened to %s\n", (char*) cls, nshort);
66} 66}
67 67
68/** 68/**
@@ -88,7 +88,7 @@ run (void *cls, char *const *args, const char *cfgfile,
88 if (name != NULL) 88 if (name != NULL)
89 { 89 {
90 /** shorten name */ 90 /** shorten name */
91 GNUNET_GNS_shorten(gns, name, &process_shorten_result, NULL); 91 GNUNET_GNS_shorten(gns, name, &process_shorten_result, name);
92 } 92 }
93 93
94 // FIXME: do work here... 94 // FIXME: do work here...