0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
Fredrik Fornwall a9d09feb84 fix(main/stag): Fix building with current clang
Fix the following build error:
> error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2024-05-15 12:06:13 +02:00

22 lines
420 B
Diff

diff -u -r ../stag-1.0.0/stag.c ./stag.c
--- ../stag-1.0.0/stag.c 2014-10-22 05:12:36.000000000 +0000
+++ ./stag.c 2024-05-15 09:59:45.934188475 +0000
@@ -47,7 +47,7 @@
"\n";
// Display usage info
-void usage(){
+void usage(void){
printf(stag_usage_string);
exit(0);
}
@@ -87,7 +87,7 @@
// Read options
- char opt;
+ signed char opt;
int option_index = 0;
struct option long_options[] =
{