# HG changeset patch # User ib # Date 1328277430 0 # Node ID f744357e94bd1a0f7291e667aa4a032ca7091a40 # Parent abcf26dcec6bb64a53ca7a091967865f8ce6a5a6 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. diff -r abcf26dcec6b -r f744357e94bd gui/cfg.c --- a/gui/cfg.c Fri Feb 03 13:38:42 2012 +0000 +++ b/gui/cfg.c Fri Feb 03 13:57:10 2012 +0000 @@ -230,7 +230,7 @@ return m_config_parse_config_file(gui_conf, filename, 0); } -int cfg_read(void) +void cfg_read(void) { char *cfg; FILE *f; @@ -328,11 +328,9 @@ } free(cfg); - - return 0; } -int cfg_write(void) +void cfg_write(void) { char *cfg; FILE *f; @@ -420,6 +418,4 @@ } free(cfg); - - return 0; } diff -r abcf26dcec6b -r f744357e94bd gui/cfg.h --- a/gui/cfg.h Fri Feb 03 13:38:42 2012 +0000 +++ b/gui/cfg.h Fri Feb 03 13:57:10 2012 +0000 @@ -90,7 +90,7 @@ extern char *fsHistory[5]; int cfg_gui_include(m_option_t *conf, const char *filename); -int cfg_read(void); -int cfg_write(void); +void cfg_read(void); +void cfg_write(void); #endif /* MPLAYER_GUI_CFG_H */ diff -r abcf26dcec6b -r f744357e94bd gui/win32/wincfg.c --- a/gui/win32/wincfg.c Fri Feb 03 13:38:42 2012 +0000 +++ b/gui/win32/wincfg.c Fri Feb 03 13:57:10 2012 +0000 @@ -93,7 +93,7 @@ return m_config_parse_config_file(gui_conf, filename, 0); } -int cfg_read(void) +void cfg_read(void) { char *cfg = get_path("gui.conf"); @@ -106,10 +106,9 @@ if (m_config_parse_config_file(gui_conf, cfg, 1) < 0) mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_ConfigFileError); free(cfg); - return 0; } -int cfg_write(void) +void cfg_write(void) { char *cfg = get_path("gui.conf"); FILE *f; @@ -134,5 +133,4 @@ fclose(f); } free(cfg); - return 0; }