comparison gui/cfg.c @ 34561:f744357e94bd

Make cfg_read() and cfg_write() void functions. There is no error handling other than instantly exiting MPlayer and the return values aren't used anywhere.
author ib
date Fri, 03 Feb 2012 13:57:10 +0000
parents abcf26dcec6b
children fe172cd7b8e8
comparison
equal deleted inserted replaced
34560:abcf26dcec6b 34561:f744357e94bd
228 (void)conf; 228 (void)conf;
229 229
230 return m_config_parse_config_file(gui_conf, filename, 0); 230 return m_config_parse_config_file(gui_conf, filename, 0);
231 } 231 }
232 232
233 int cfg_read(void) 233 void cfg_read(void)
234 { 234 {
235 char *cfg; 235 char *cfg;
236 FILE *f; 236 FILE *f;
237 237
238 player_idle_mode = 1; // GUI is in idle mode by default 238 player_idle_mode = 1; // GUI is in idle mode by default
326 326
327 fclose(f); 327 fclose(f);
328 } 328 }
329 329
330 free(cfg); 330 free(cfg);
331
332 return 0;
333 } 331 }
334 332
335 int cfg_write(void) 333 void cfg_write(void)
336 { 334 {
337 char *cfg; 335 char *cfg;
338 FILE *f; 336 FILE *f;
339 int i; 337 int i;
340 338
418 416
419 fclose(f); 417 fclose(f);
420 } 418 }
421 419
422 free(cfg); 420 free(cfg);
423
424 return 0;
425 } 421 }