summaryrefslogtreecommitdiff
path: root/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch
blob: 883ad26cdfaf58d84f2106531b574d37fd030205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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