From a4781901a82c37c5205341679e1a7a7385795d09 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 8 Jan 2025 19:17:40 +0100 Subject: package: ndisc6: Fix for compiling with gcc-14 The callback declaration adjustment was flawed: While dropping 'restrict' keyword might be needed for some reason, dropping the asterisk changes parameter types. Also, 'const data' defaults to 'int' type when it should be 'void' instead. Signed-off-by: Phil Sutter --- package/ndisc6/patches/patch-src_traceroute_h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/ndisc6') diff --git a/package/ndisc6/patches/patch-src_traceroute_h b/package/ndisc6/patches/patch-src_traceroute_h index d47efc0c3..1571df884 100644 --- a/package/ndisc6/patches/patch-src_traceroute_h +++ b/package/ndisc6/patches/patch-src_traceroute_h @@ -8,9 +8,9 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $ -typedef ssize_t (*trace_parser_t) (const void *restrict data, size_t len, - int *restrict ttl, - unsigned *restrict n, uint16_t port); -+typedef ssize_t (*trace_parser_t) (const data, size_t len, -+ int ttl, -+ unsigned n, uint16_t port); ++typedef ssize_t (*trace_parser_t) (const void *data, size_t len, ++ int *ttl, ++ unsigned *n, uint16_t port); typedef struct tracetype { -- cgit v1.2.3