diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-08 14:14:01 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-08 14:14:01 +0000 |
commit | 3a60024e089a38aa32fcafece7c257672abf4608 (patch) | |
tree | a3c36e0a87766bd85e450bd1b9c8766965a34710 /src/gns/gnunet-gns.c | |
parent | 588b14ec0ec5c59d0dad37dcc0841c1ff0b2942c (diff) | |
download | gnunet-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.c | 6 |
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 | ||
62 | static void | 62 | static void |
63 | process_shorten_result(void* cls, const char* nlong, const char* nshort) | 63 | process_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... |