changeset 783:db1a132c7754

Add missing void to mark empty function argument lists.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Dec 2023 07:27:35 +0200
parents 94e8e6ad8c9e
children 1db55c733f7d
files th_file.c th_network.h th_util.c th_util.h
diffstat 4 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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];
--- 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);
--- 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);
 }
--- 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);