freebsd-ports/net-mgmt/ipv6calc/files/patch-clang15
Po-Chuan Hsieh 7e55bfd508
net-mgmt/ipv6calc: Fix build with Clang 15 and remove the workaround
libipv6calc_db_wrapper.c:2901:23: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
                        ret = get_array_row(i, &value_first_00_31, &value_first_32_63, &value_last_00_31, &value_last_32_63);
                                           ^
1 error generated.
2023-06-30 15:02:08 +08:00

11 lines
597 B
Text

--- databases/lib/libipv6calc_db_wrapper.c.orig 2023-06-12 07:11:54 UTC
+++ databases/lib/libipv6calc_db_wrapper.c
@@ -2778,7 +2778,7 @@ long int libipv6calc_db_wrapper_get_entry_generic(
const uint32_t lookup_key_00_31, // lookup key MSB
const uint32_t lookup_key_32_63, // lookup key LSB
void *data_ptr, // pointer to DB data in case of IPV6CALC_DB_LOOKUP_DATA_PTR_TYPE_BDB, otherwise NULL
- int (*get_array_row)() // function to get array row
+ int (*get_array_row)(int, uint32_t*, uint32_t*, uint32_t*, uint32_t*) // function to get array row
) {
int retval = -1;