Browse Source

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>
Phil Sutter 3 months ago
parent
commit
a4781901a8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      package/ndisc6/patches/patch-src_traceroute_h

+ 3 - 3
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
  {