Browse Source

Prevent warnings.

Georgi Chorbadzhiyski 4 years ago
parent
commit
f92261369a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      config.c

+ 4 - 4
config.c View File

@@ -73,9 +73,9 @@ void config_free(CONFIG **pconf) {
73 73
 	if (conf) {
74 74
 		conf->output->dienow = 1;
75 75
 
76
-		list_free(&conf->nit, NULL, nit_free);
77
-		list_free(&conf->inputs, NULL, input_free);
78
-		list_free(&conf->channels, NULL, channel_free);
76
+		list_free(&conf->nit, NULL, (void (*)(void **))nit_free);
77
+		list_free(&conf->inputs, NULL, (void (*)(void **))input_free);
78
+		list_free(&conf->channels, NULL, (void (*)(void **))channel_free);
79 79
 		output_free(&conf->output);
80 80
 
81 81
 		FREE(conf->ident);
@@ -230,7 +230,7 @@ int config_load_channels(CONFIG *conf) {
230 230
 	list_unlock(conf->inputs);
231 231
 
232 232
 	/* Free old_channels */
233
-	list_free(&old_channels, NULL, channel_free);
233
+	list_free(&old_channels, NULL, (void (*)(void **))channel_free);
234 234
 
235 235
 	LOGf("CONFIG: %d channels loaded\n", num_channels);
236 236
 	return num_channels;