ports/devel/libinjection/files/patch-libinjection_sqli.c
Po-Chuan Hsieh dd6d333a6f
devel/libinjection: Fix build on 14-CURRENT
libinjection_sqli.c:1200:33: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
const char* libinjection_version()
                                ^
                                 void
1 error generated.

Reference:	https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/pdf5b273c8e36_s83d5725005/logs/libinjection-3.10.0_1.log
2023-05-03 00:17:40 +08:00

11 lines
360 B
C

--- libinjection_sqli.c.orig 2017-05-21 20:44:26 UTC
+++ libinjection_sqli.c
@@ -1197,7 +1197,7 @@ static size_t parse_number(struct libinjection_sqli_st
* without having to regenerated the SWIG (or other binding) in minor
* releases.
*/
-const char* libinjection_version()
+const char* libinjection_version(void)
{
return LIBINJECTION_VERSION;
}