From: David Schweikert Date: Mon, 4 Nov 2013 22:04:00 +0000 (+0100) Subject: Fix again compatibility issue with FreeBSD (Shawn Chu) X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1cdf8e1d33a1b797d13e98fa96f133bd1a54c19;p=fping.git Fix again compatibility issue with FreeBSD (Shawn Chu) --- diff --git a/ChangeLog b/ChangeLog index fe926b3..a4dc662 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ UNRELEASED * Allow running as non-root on Mac OS X by using non-privileged ICMP (#7) * Remove unnecessary IPv6 socket options + * Fix again compatibility issue with FreeBSD (Shawn Chu) 2013-10-10 David Schweikert * Version 3.6 diff --git a/src/fping.c b/src/fping.c index 47b3bb4..7022a8f 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1446,7 +1446,6 @@ int send_ping( int s, HOST_ENTRY *h ) n = sendto( s, buffer, ping_pkt_size, 0, ( struct sockaddr* )&h->saddr, sizeof( FPING_SOCKADDR ) ); - if( n < 0 || n != ping_pkt_size ) if( (n < 0 || n != ping_pkt_size) #if defined( EHOSTDOWN )