diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:29 +0200 |
commit | 76a8fab4adc293982f355609b89dde88d5f355e0 (patch) | |
tree | b8fe58ce54cade4122402c57328a9691064b2590 /src/src_lyrics.c | |
parent | 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (diff) | |
download | mpd-76a8fab4adc293982f355609b89dde88d5f355e0.tar.gz mpd-76a8fab4adc293982f355609b89dde88d5f355e0.tar.xz mpd-76a8fab4adc293982f355609b89dde88d5f355e0.zip |
fix function prototypes
Add missing prototypes, and fix wrong prototypes. Convert lots of
functions to "static" when they are only used within the current
source file.
Diffstat (limited to '')
-rw-r--r-- | src/src_lyrics.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/src_lyrics.c b/src/src_lyrics.c index ecacef250..4d41aea37 100644 --- a/src/src_lyrics.c +++ b/src/src_lyrics.c @@ -103,7 +103,9 @@ int deregister_lyr_hd (); int register_lyr_hd (src_lyr *source_descriptor); #endif -int src_lyr_stack_init () +static int src_lyr_plugins_load(void); + +void src_lyr_stack_init(void) { src_lyr_stack = g_array_new (TRUE, FALSE, sizeof (src_lyr*)); @@ -124,7 +126,7 @@ int src_lyr_stack_init () #endif } -int src_lyr_init () +int src_lyr_init(void) { src_lyr_stack_init (); @@ -145,7 +147,7 @@ int get_lyr_by_src (int priority, char *artist, char *title) return 0; } -int src_lyr_load_plugin_file (const char *file) +static int src_lyr_load_plugin_file(const char *file) { GString *path; path = g_string_new (PLUGIN_DIR_SYSTEM); @@ -162,7 +164,7 @@ int src_lyr_load_plugin_file (const char *file) return 0; } -void src_lyr_plugins_load_from_dir (GDir *plugin_dir) +static void src_lyr_plugins_load_from_dir(GDir *plugin_dir) { const gchar *cur_file; @@ -173,7 +175,7 @@ void src_lyr_plugins_load_from_dir (GDir *plugin_dir) } } -int src_lyr_plugins_load () +static int src_lyr_plugins_load(void) { GDir *plugin_dir; |