Mercurial > audlegacy
diff src/audacious/main.c @ 4542:26209b646930
Some cosmetic changes
author | mf0102 <0102@gmx.at> |
---|---|
date | Mon, 12 May 2008 19:19:49 +0200 |
parents | 97b29dec6c6b |
children | ed94ac6182df |
line wrap: on
line diff
--- a/src/audacious/main.c Mon May 12 00:13:38 2008 +0200 +++ b/src/audacious/main.c Mon May 12 19:19:49 2008 +0200 @@ -105,12 +105,10 @@ gchar *previous_session_id; gboolean macpack; }; - typedef struct _AudCmdLineOpt AudCmdLineOpt; static AudCmdLineOpt options; - gchar *aud_paths[BMP_PATH_COUNT] = {}; GCond *cond_scan; @@ -120,7 +118,7 @@ #endif static void -dump_version(void) +print_version(void) { g_printf("%s %s [%s]\n", _(application_name), VERSION, svn_stamp); } @@ -138,18 +136,6 @@ } static void -aud_free_paths(void) -{ - int i; - - for (i = 0; i < BMP_PATH_COUNT; i++) - { - g_free(aud_paths[i]); - aud_paths[i] = 0; - } -} - -static void aud_init_paths() { char *xdg_config_home; @@ -205,6 +191,17 @@ g_atexit(aud_free_paths); } +static void +aud_free_paths(void) +{ + int i; + + for (i = 0; i < BMP_PATH_COUNT; i++) + { + g_free(aud_paths[i]); + aud_paths[i] = 0; + } +} static void aud_set_default_icon(void) @@ -329,7 +326,7 @@ if (options.version) { - dump_version(); + print_version(); exit(EXIT_SUCCESS); }