comparison th_util.c @ 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 31bc1ed07cf5
children
comparison
equal deleted inserted replaced
782:94e8e6ad8c9e 783:db1a132c7754
75 fprintf(outFile, " v%s", th_prog_version); 75 fprintf(outFile, " v%s", th_prog_version);
76 fprintf(outFile, "\n"); 76 fprintf(outFile, "\n");
77 } 77 }
78 78
79 79
80 int th_term_width() 80 int th_term_width(void)
81 { 81 {
82 #ifdef TH_PLAT_UNIX 82 #ifdef TH_PLAT_UNIX
83 struct winsize cwz; 83 struct winsize cwz;
84 ioctl(0, TIOCGWINSZ, &cwz); 84 ioctl(0, TIOCGWINSZ, &cwz);
85 if (cwz.ws_col < 5) 85 if (cwz.ws_col < 5)
92 return res; 92 return res;
93 #endif 93 #endif
94 } 94 }
95 95
96 96
97 int th_term_height() 97 int th_term_height(void)
98 { 98 {
99 #ifdef TH_PLAT_UNIX 99 #ifdef TH_PLAT_UNIX
100 struct winsize cwz; 100 struct winsize cwz;
101 ioctl(0, TIOCGWINSZ, &cwz); 101 ioctl(0, TIOCGWINSZ, &cwz);
102 if (cwz.ws_row < 5) 102 if (cwz.ws_row < 5)
179 } 179 }
180 180
181 181
182 /* Error handling 182 /* Error handling
183 */ 183 */
184 int th_get_error() 184 int th_get_error(void)
185 { 185 {
186 return th_errno_to_error(errno); 186 return th_errno_to_error(errno);
187 } 187 }
188 188
189 189