diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-06 08:20:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-06 08:20:53 +0200 |
commit | 561d9096a28037d65783cf40d4016e39a0cf3a2b (patch) | |
tree | 2591bb1ac9bb5d0b47c6d37447e1d40cfc8040a9 /src/conversation/plugin_gnsrecord_conversation.c | |
parent | 8eb738e7d6005ffd5e6cbb1ae80316ed0da6e3f9 (diff) | |
download | gnunet-561d9096a28037d65783cf40d4016e39a0cf3a2b.tar.gz gnunet-561d9096a28037d65783cf40d4016e39a0cf3a2b.zip |
fix misc compiler warnings
Diffstat (limited to 'src/conversation/plugin_gnsrecord_conversation.c')
-rw-r--r-- | src/conversation/plugin_gnsrecord_conversation.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conversation/plugin_gnsrecord_conversation.c b/src/conversation/plugin_gnsrecord_conversation.c index dd81ec917..3fee68782 100644 --- a/src/conversation/plugin_gnsrecord_conversation.c +++ b/src/conversation/plugin_gnsrecord_conversation.c | |||
@@ -46,6 +46,7 @@ conversation_value_to_string (void *cls, | |||
46 | { | 46 | { |
47 | char *s; | 47 | char *s; |
48 | 48 | ||
49 | (void) cls; | ||
49 | switch (type) | 50 | switch (type) |
50 | { | 51 | { |
51 | case GNUNET_GNSRECORD_TYPE_PHONE: | 52 | case GNUNET_GNSRECORD_TYPE_PHONE: |
@@ -103,6 +104,7 @@ conversation_string_to_value (void *cls, | |||
103 | void **data, | 104 | void **data, |
104 | size_t *data_size) | 105 | size_t *data_size) |
105 | { | 106 | { |
107 | (void) cls; | ||
106 | if (NULL == s) | 108 | if (NULL == s) |
107 | { | 109 | { |
108 | GNUNET_break (0); | 110 | GNUNET_break (0); |
@@ -181,6 +183,7 @@ conversation_typename_to_number (void *cls, | |||
181 | { | 183 | { |
182 | unsigned int i; | 184 | unsigned int i; |
183 | 185 | ||
186 | (void) cls; | ||
184 | i=0; | 187 | i=0; |
185 | while ( (name_map[i].name != NULL) && | 188 | while ( (name_map[i].name != NULL) && |
186 | (0 != strcasecmp (gns_typename, name_map[i].name)) ) | 189 | (0 != strcasecmp (gns_typename, name_map[i].name)) ) |
@@ -202,6 +205,7 @@ conversation_number_to_typename (void *cls, | |||
202 | { | 205 | { |
203 | unsigned int i; | 206 | unsigned int i; |
204 | 207 | ||
208 | (void) cls; | ||
205 | i=0; | 209 | i=0; |
206 | while ( (name_map[i].name != NULL) && | 210 | while ( (name_map[i].name != NULL) && |
207 | (type != name_map[i].number) ) | 211 | (type != name_map[i].number) ) |
@@ -221,6 +225,7 @@ libgnunet_plugin_gnsrecord_conversation_init (void *cls) | |||
221 | { | 225 | { |
222 | struct GNUNET_GNSRECORD_PluginFunctions *api; | 226 | struct GNUNET_GNSRECORD_PluginFunctions *api; |
223 | 227 | ||
228 | (void) cls; | ||
224 | api = GNUNET_new (struct GNUNET_GNSRECORD_PluginFunctions); | 229 | api = GNUNET_new (struct GNUNET_GNSRECORD_PluginFunctions); |
225 | api->value_to_string = &conversation_value_to_string; | 230 | api->value_to_string = &conversation_value_to_string; |
226 | api->string_to_value = &conversation_string_to_value; | 231 | api->string_to_value = &conversation_string_to_value; |