diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2007-01-31 03:53:22 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2007-01-31 03:53:22 +0000 |
commit | e3ec2ad59ef4991f8f90422b39c2509535bcc56b (patch) | |
tree | 320eedab9589c76bd1cdd4d6ae7a9de936be3ffd /src/plugin_xmms | |
parent | 44eead85340cd6d83adbd405603e3aad83924979 (diff) | |
download | flac-e3ec2ad59ef4991f8f90422b39c2509535bcc56b.tar.gz |
convert C prototypes for functions with no args from () to (void)
Diffstat (limited to 'src/plugin_xmms')
-rw-r--r-- | src/plugin_xmms/configure.c | 2 | ||||
-rw-r--r-- | src/plugin_xmms/configure.h | 2 | ||||
-rw-r--r-- | src/plugin_xmms/fileinfo.c | 6 | ||||
-rw-r--r-- | src/plugin_xmms/plugin.c | 20 |
4 files changed, 15 insertions, 15 deletions
diff --git a/src/plugin_xmms/configure.c b/src/plugin_xmms/configure.c index 8adab100..f9170e97 100644 --- a/src/plugin_xmms/configure.c +++ b/src/plugin_xmms/configure.c @@ -783,7 +783,7 @@ void FLAC_XMMS__configure(void) gtk_widget_show_all(flac_configurewin); } -void FLAC_XMMS__aboutbox() +void FLAC_XMMS__aboutbox(void) { static GtkWidget *about_window; diff --git a/src/plugin_xmms/configure.h b/src/plugin_xmms/configure.h index 71647460..88b2e37e 100644 --- a/src/plugin_xmms/configure.h +++ b/src/plugin_xmms/configure.h @@ -69,7 +69,7 @@ typedef struct { extern flac_config_t flac_cfg; extern void FLAC_XMMS__configure(void); -extern void FLAC_XMMS__aboutbox(); +extern void FLAC_XMMS__aboutbox(void); #endif diff --git a/src/plugin_xmms/fileinfo.c b/src/plugin_xmms/fileinfo.c index 1d5f0add..5c74ab31 100644 --- a/src/plugin_xmms/fileinfo.c +++ b/src/plugin_xmms/fileinfo.c @@ -142,7 +142,7 @@ static void get_entry_tag(GtkEntry * entry, const char *name) free(utf8); } -static void show_tag() +static void show_tag(void) { set_entry_tag(GTK_ENTRY(title_entry) , FLAC_plugin__tags_get_tag_utf8(tags_, "TITLE")); set_entry_tag(GTK_ENTRY(artist_entry) , FLAC_plugin__tags_get_tag_utf8(tags_, "ARTIST")); @@ -195,7 +195,7 @@ static void remove_tag(GtkWidget * w, gpointer data) gtk_widget_destroy(window); } -static void show_file_info() +static void show_file_info(void) { FLAC__StreamMetadata streaminfo; struct stat _stat; @@ -239,7 +239,7 @@ static void show_file_info() } } -static void show_replaygain() +static void show_replaygain(void) { /* known limitation: If only one of gain and peak is set, neither will be shown. This is true for * both track and album replaygain tags. Written so it will be easy to fix, with some trouble. */ diff --git a/src/plugin_xmms/plugin.c b/src/plugin_xmms/plugin.c index 32294785..d27e9563 100644 --- a/src/plugin_xmms/plugin.c +++ b/src/plugin_xmms/plugin.c @@ -75,14 +75,14 @@ typedef struct { DitherContext dither_context; } stream_data_struct; -static void FLAC_XMMS__init(); +static void FLAC_XMMS__init(void); static int FLAC_XMMS__is_our_file(char *filename); static void FLAC_XMMS__play_file(char *filename); -static void FLAC_XMMS__stop(); +static void FLAC_XMMS__stop(void); static void FLAC_XMMS__pause(short p); static void FLAC_XMMS__seek(int time); -static int FLAC_XMMS__get_time(); -static void FLAC_XMMS__cleanup(); +static int FLAC_XMMS__get_time(void); +static void FLAC_XMMS__cleanup(void); static void FLAC_XMMS__get_song_info(char *filename, char **title, int *length); static void *play_loop_(void *arg); @@ -141,7 +141,7 @@ static FLAC__bool is_big_endian_host_; static unsigned bitrate_history_[BITRATE_HIST_SIZE]; -InputPlugin *get_iplugin_info() +InputPlugin *get_iplugin_info(void) { flac_ip.description = g_strdup_printf("Reference FLAC Player v%s", FLAC__VERSION_STRING); return &flac_ip; @@ -154,7 +154,7 @@ void set_track_info(const char* title, int length_in_msec) } } -static gchar* homedir() +static gchar* homedir(void) { gchar *result; char *env_home = getenv("HOME"); @@ -177,7 +177,7 @@ static FLAC__bool is_http_source(const char *source) return 0 == strncasecmp(source, "http://", 7); } -void FLAC_XMMS__init() +void FLAC_XMMS__init(void) { ConfigFile *cfg; FLAC__uint32 test = 1; @@ -343,7 +343,7 @@ void FLAC_XMMS__play_file(char *filename) pthread_create(&decode_thread_, NULL, play_loop_, NULL); } -void FLAC_XMMS__stop() +void FLAC_XMMS__stop(void) { if(stream_data_.is_playing) { stream_data_.is_playing = false; @@ -372,7 +372,7 @@ void FLAC_XMMS__seek(int time) } } -int FLAC_XMMS__get_time() +int FLAC_XMMS__get_time(void) { if(audio_error_) return -2; @@ -382,7 +382,7 @@ int FLAC_XMMS__get_time() return flac_ip.output->output_time(); } -void FLAC_XMMS__cleanup() +void FLAC_XMMS__cleanup(void) { safe_decoder_delete_(decoder_); decoder_ = 0; |