diff --git a/NEWS b/NEWS index d7ee4d2a..427a42fd 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ------ - ports/cmake: Work around bug in CMake that does not detect FPU on Apple ARM CPUs (github PR 14). +- Fix some laziness (func() to func(void)) for standards conformance. 1.32.6 ------ diff --git a/src/common.c b/src/common.c index eea1c336..fada14ae 100644 --- a/src/common.c +++ b/src/common.c @@ -451,7 +451,7 @@ void print_stat(mpg123_handle *fr, long offset, out123_handle *ao, int draw_bar free(line); } -void clear_stat() +void clear_stat(void) { int len = term_width(STDERR_FILENO); if(len > 0) diff --git a/src/common.h b/src/common.h index c01da9c6..e3f15ffc 100644 --- a/src/common.h +++ b/src/common.h @@ -26,7 +26,7 @@ void print_header_compact(mpg123_handle *); void print_stat(mpg123_handle *fr, long offset, out123_handle *ao, int draw_bar , struct parameter *param); void print_buf(const char* prefix, out123_handle *ao); -void clear_stat(); +void clear_stat(void); // input: decoder and output handle, frame offset // output: frames, frames_remain, seconds, seconds_remain, seconds_buffered, seconds_total int position_info( mpg123_handle *, off_t, out123_handle *, off_t *, off_t *, double *, double *, double *, double *); diff --git a/src/httpget.c b/src/httpget.c index 35bd912a..cf5b2d8d 100644 --- a/src/httpget.c +++ b/src/httpget.c @@ -291,7 +291,7 @@ int translate_url(const char *url, mpg123_string *purl) * 2000-10-21: * We would like spaces to be automatically converted to %20's when * fetching via HTTP. - * -- Martin Sjögren + * -- Martin Sjoegren * Hm, why only spaces? Maybe one should do this http stuff more properly... */ if ((sptr = strchr(url, ' ')) == NULL) diff --git a/src/mpg123.c b/src/mpg123.c index 61d39dc6..7a2270a8 100644 --- a/src/mpg123.c +++ b/src/mpg123.c @@ -178,7 +178,7 @@ static size_t prebuffer_size = 0; static size_t prebuffer_fill = 0; static size_t minbytes = 0; -void set_intflag() +void set_intflag(void) { debug("set_intflag TRUE"); intflag = TRUE; diff --git a/src/mpg123app.h b/src/mpg123app.h index 40149c6f..8f957049 100644 --- a/src/mpg123app.h +++ b/src/mpg123app.h @@ -148,7 +148,7 @@ extern int playlimit; #endif /* why extern? */ -void play_prebuffer(); +void play_prebuffer(void); extern int play_frame(void); extern int control_generic(mpg123_handle *fr); diff --git a/src/playlist.c b/src/playlist.c index 4e124a16..f9190cd6 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -300,7 +300,7 @@ static void init_playlist(void) pl.stdin_used = FALSE; } -int playlist_stdin() +int playlist_stdin(void) { return pl.stdin_used; } diff --git a/src/playlist.h b/src/playlist.h index cc84955b..f6bd52bb 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -13,7 +13,7 @@ /* create playlist from argv including reading of playlist file */ void prepare_playlist(int argc, char** argv, int args_utf8, int *is_utf8); /* Return TRUE if standard put is used up by the playlist. */ -int playlist_stdin(); +int playlist_stdin(void); /* returns the next url to play or NULL when there is none left */ char *get_next_file(void); /* Get current track number, optionally the total count and loop counter. */