Explorar el Código

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 hace 4 meses
padre
commit
a4781901a8
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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,
 -typedef ssize_t (*trace_parser_t) (const void *restrict data, size_t len,
 -                                   int *restrict ttl,
 -                                   int *restrict ttl,
 -                                   unsigned *restrict n, uint16_t port);
 -                                   unsigned *restrict n, uint16_t port);
-+typedef ssize_t (*trace_parser_t) (const data, size_t len,
++typedef ssize_t (*trace_parser_t) (const void *data, size_t len,
-+                                   int ttl,
++                                   int *ttl,
-+                                   unsigned n, uint16_t port);
++                                   unsigned *n, uint16_t port);
  
  
  typedef struct tracetype
  typedef struct tracetype
  {
  {