# HG changeset patch # User Matti Hamalainen # Date 1703050055 -7200 # Node ID db1a132c77546f369498cb7fb83514572c60e63e # Parent 94e8e6ad8c9eb4fc86caf571f3bd9c90f1b5b39f Add missing void to mark empty function argument lists. diff -r 94e8e6ad8c9e -r db1a132c7754 th_file.c --- a/th_file.c Thu Aug 03 09:04:43 2023 +0300 +++ b/th_file.c Wed Dec 20 07:27:35 2023 +0200 @@ -38,7 +38,7 @@ } -char * th_get_data_dir() +char * th_get_data_dir(void) { #if defined(TH_PLAT_WINDOWS) char tmpPath[MAX_PATH]; diff -r 94e8e6ad8c9e -r db1a132c7754 th_network.h --- a/th_network.h Thu Aug 03 09:04:43 2023 +0300 +++ b/th_network.h Wed Dec 20 07:27:35 2023 +0200 @@ -130,7 +130,7 @@ } th_conn_t; -int th_network_init(); +int th_network_init(void); void th_network_close(void); struct hostent *th_resolve_host(th_conn_t *conn, const char *name); diff -r 94e8e6ad8c9e -r db1a132c7754 th_util.c --- a/th_util.c Thu Aug 03 09:04:43 2023 +0300 +++ b/th_util.c Wed Dec 20 07:27:35 2023 +0200 @@ -77,7 +77,7 @@ } -int th_term_width() +int th_term_width(void) { #ifdef TH_PLAT_UNIX struct winsize cwz; @@ -94,7 +94,7 @@ } -int th_term_height() +int th_term_height(void) { #ifdef TH_PLAT_UNIX struct winsize cwz; @@ -181,7 +181,7 @@ /* Error handling */ -int th_get_error() +int th_get_error(void) { return th_errno_to_error(errno); } diff -r 94e8e6ad8c9e -r db1a132c7754 th_util.h --- a/th_util.h Thu Aug 03 09:04:43 2023 +0300 +++ b/th_util.h Wed Dec 20 07:27:35 2023 +0200 @@ -116,10 +116,10 @@ void th_print_banner(FILE *outFile, const char *binName, const char *usage); void th_print_version(FILE *outFile); -int th_term_width(); -int th_term_height(); +int th_term_width(void); +int th_term_height(void); -int th_get_error(); +int th_get_error(void); int th_errno_to_error(int error); const char *th_error_str(int error);