Control: tag -1 patch thanks On 2024-05-25 02:32, Santiago Vila wrote: > bing_probes.c: In function ‘generate_data’: > bing_probes.c:259:17: error: implicit declaration of function ‘memcpy’ > [-Werror=implicit-function-declaration] > 259 | memcpy(packet_data+i,state->pattern, > | ^~~~~~ > bing_probes.c:31:1: note: include ‘<string.h>’ or provide a declaration of > ‘memcpy’
The fix suggested by the compiler (first part) works fine. See attached patch. Emanuele
>From ad2111765318727b9ce8ff40ddd25ae7ec728ce4 Mon Sep 17 00:00:00 2001 From: Emanuele Rocca <e...@debian.org> Date: Fri, 14 Mar 2025 13:43:34 +0100 Subject: [PATCH 1/3] Fix implicit declaration of memcpy --- bing_probes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bing_probes.c b/bing_probes.c index 0624ff7..b007058 100644 --- a/bing_probes.c +++ b/bing_probes.c @@ -10,6 +10,7 @@ #include <errno.h> #include <malloc.h> #include <stdlib.h> +#include <string.h> /* types.h provides u_short on HPUX10 and Solaris */ #include <sys/types.h> -- 2.39.5