diff options
Diffstat (limited to 'net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch')
-rw-r--r-- | net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch b/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch new file mode 100644 index 000000000000..883ad26cdfaf --- /dev/null +++ b/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch @@ -0,0 +1,33 @@ +--- a/src/mod/xp_icmp_echo.c ++++ b/src/mod/xp_icmp_echo.c +@@ -90,7 +90,7 @@ + fprintf(stderr,"[%d bytes] sent, waiting for reponse.\n", res); + #endif + +- recv_pack = read_icmp(&res, ICMP_ECHOREPLY, -1); ++ recv_pack = read_icmp((ssize_t *)&res, ICMP_ECHOREPLY, -1); + + if (recv_pack == NULL || (unsigned)res < sizeof(ip) + 8) { + #ifdef EBUG +--- a/src/mod/xp_icmp_infr.c ++++ b/src/mod/xp_icmp_infr.c +@@ -83,7 +83,7 @@ + fprintf(stderr,"[%d bytes] sent, waiting for reponse.\n", res); + #endif + +- recv_pack = read_icmp(&res, ICMP_IREQREPLY, -1); ++ recv_pack = read_icmp((ssize_t *)&res, ICMP_IREQREPLY, -1); + + if (recv_pack == NULL || (unsigned)res < sizeof(ip) + 8) { + #ifdef EBUG +--- a/src/mod/xp_udp_probe.c ++++ b/src/mod/xp_udp_probe.c +@@ -92,7 +92,7 @@ + #ifdef EBUG + fprintf(stderr,"[%d bytes] sent, waiting for reponse.\n", res); + #endif +- recv_pack = read_icmp(&res, ICMP_UNREACH, -1); ++ recv_pack = read_icmp((ssize_t *)&res, ICMP_UNREACH, -1); + + if (recv_pack == NULL || (unsigned)res < sizeof(ip) + 8) { + #ifdef EBUG |