Browse Source

Prevent warnings.

Georgi Chorbadzhiyski 9 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
 	if (conf) {
73
 	if (conf) {
74
 		conf->output->dienow = 1;
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
 		output_free(&conf->output);
79
 		output_free(&conf->output);
80
 
80
 
81
 		FREE(conf->ident);
81
 		FREE(conf->ident);
230
 	list_unlock(conf->inputs);
230
 	list_unlock(conf->inputs);
231
 
231
 
232
 	/* Free old_channels */
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
 	LOGf("CONFIG: %d channels loaded\n", num_channels);
235
 	LOGf("CONFIG: %d channels loaded\n", num_channels);
236
 	return num_channels;
236
 	return num_channels;

Loading…
Cancel
Save