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 --- package/ndisc6/patches/patch-src_traceroute_h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/ndisc6/patches/patch-src_traceroute_h b/package/ndisc6/patches/patch-src_traceroute_h index d47efc0c38b6e..1571df8849bf7 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 {