diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:45:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:45:16 +0000 |
commit | d77a90df90775e88dd10c8e4963132d33cd4f3ef (patch) | |
tree | 8993d58e2322a2a9d2422be8d077a27b668312f9 /src/hostlist/gnunet-daemon-hostlist.c | |
parent | 677ef8f7fad539bf9ba744a32716ebdfc51a5a42 (diff) | |
download | gnunet-d77a90df90775e88dd10c8e4963132d33cd4f3ef.tar.gz gnunet-d77a90df90775e88dd10c8e4963132d33cd4f3ef.zip |
-fixing use of uninitialized variable, some code cleanup, fixing memory leak on error path
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index b0fb03e29..b10f124d4 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -137,7 +137,12 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server, | |||
137 | /** | 137 | /** |
138 | * Core handler for p2p hostlist advertisements | 138 | * Core handler for p2p hostlist advertisements |
139 | * | 139 | * |
140 | * @param cls closure | ||
141 | * @param peer identity of the sender | ||
142 | * @param message advertisement message we got | ||
143 | * @param atsi performance information | ||
140 | * @param atsi_count number of records in 'atsi' | 144 | * @param atsi_count number of records in 'atsi' |
145 | * @return GNUNET_OK on success | ||
141 | */ | 146 | */ |
142 | static int | 147 | static int |
143 | advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer, | 148 | advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer, |