diff options
author | Phil Sutter <phil@nwl.cc> | 2025-01-08 19:17:40 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-01-09 11:19:00 +0100 |
commit | a4781901a82c37c5205341679e1a7a7385795d09 (patch) | |
tree | 28e893320f27779683cf3db788479d4af16c5c78 /package | |
parent | 31e6c96a7d5fa662005dda6dd751ff4d952e6801 (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'package')
-rw-r--r-- | package/ndisc6/patches/patch-src_traceroute_h | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |