diff options
Diffstat (limited to 'src/conversation/plugin_gnsrecord_conversation.c')
-rw-r--r-- | src/conversation/plugin_gnsrecord_conversation.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/conversation/plugin_gnsrecord_conversation.c b/src/conversation/plugin_gnsrecord_conversation.c index 91cae7261..1825c6d4b 100644 --- a/src/conversation/plugin_gnsrecord_conversation.c +++ b/src/conversation/plugin_gnsrecord_conversation.c | |||
@@ -2,20 +2,18 @@ | |||
2 | This file is part of GNUnet | 2 | This file is part of GNUnet |
3 | Copyright (C) 2013 GNUnet e.V. | 3 | Copyright (C) 2013 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | it under the terms of the GNU General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
7 | by the Free Software Foundation; either version 3, or (at your | 7 | by the Free Software Foundation, either version 3 of the License, |
8 | option) any later version. | 8 | or (at your option) any later version. |
9 | 9 | ||
10 | GNUnet is distributed in the hope that it will be useful, but | 10 | GNUnet is distributed in the hope that it will be useful, but |
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with GNUnet; see the file COPYING. If not, write to the | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | Boston, MA 02110-1301, USA. | ||
19 | */ | 17 | */ |
20 | 18 | ||
21 | /** | 19 | /** |
@@ -51,6 +49,7 @@ conversation_value_to_string (void *cls, | |||
51 | { | 49 | { |
52 | char *s; | 50 | char *s; |
53 | 51 | ||
52 | (void) cls; | ||
54 | switch (type) | 53 | switch (type) |
55 | { | 54 | { |
56 | case GNUNET_GNSRECORD_TYPE_PHONE: | 55 | case GNUNET_GNSRECORD_TYPE_PHONE: |
@@ -108,6 +107,7 @@ conversation_string_to_value (void *cls, | |||
108 | void **data, | 107 | void **data, |
109 | size_t *data_size) | 108 | size_t *data_size) |
110 | { | 109 | { |
110 | (void) cls; | ||
111 | if (NULL == s) | 111 | if (NULL == s) |
112 | { | 112 | { |
113 | GNUNET_break (0); | 113 | GNUNET_break (0); |
@@ -186,6 +186,7 @@ conversation_typename_to_number (void *cls, | |||
186 | { | 186 | { |
187 | unsigned int i; | 187 | unsigned int i; |
188 | 188 | ||
189 | (void) cls; | ||
189 | i=0; | 190 | i=0; |
190 | while ( (name_map[i].name != NULL) && | 191 | while ( (name_map[i].name != NULL) && |
191 | (0 != strcasecmp (gns_typename, name_map[i].name)) ) | 192 | (0 != strcasecmp (gns_typename, name_map[i].name)) ) |
@@ -207,6 +208,7 @@ conversation_number_to_typename (void *cls, | |||
207 | { | 208 | { |
208 | unsigned int i; | 209 | unsigned int i; |
209 | 210 | ||
211 | (void) cls; | ||
210 | i=0; | 212 | i=0; |
211 | while ( (name_map[i].name != NULL) && | 213 | while ( (name_map[i].name != NULL) && |
212 | (type != name_map[i].number) ) | 214 | (type != name_map[i].number) ) |
@@ -226,6 +228,7 @@ libgnunet_plugin_gnsrecord_conversation_init (void *cls) | |||
226 | { | 228 | { |
227 | struct GNUNET_GNSRECORD_PluginFunctions *api; | 229 | struct GNUNET_GNSRECORD_PluginFunctions *api; |
228 | 230 | ||
231 | (void) cls; | ||
229 | api = GNUNET_new (struct GNUNET_GNSRECORD_PluginFunctions); | 232 | api = GNUNET_new (struct GNUNET_GNSRECORD_PluginFunctions); |
230 | api->value_to_string = &conversation_value_to_string; | 233 | api->value_to_string = &conversation_value_to_string; |
231 | api->string_to_value = &conversation_string_to_value; | 234 | api->string_to_value = &conversation_string_to_value; |