mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
a9d09feb84
Fix the following build error: > error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
22 lines
420 B
Diff
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[] =
|
|
{
|