[monitoring-plugins] check_icmp: removed outcommented code

Jacob Hansen git at monitoring-plugins.org
Tue Feb 19 15:50:16 CET 2019


 Module: monitoring-plugins
 Branch: master
 Commit: e5eccb663efb40c010ed608f5900b341592cfa68
 Author: Jacob Hansen <jhansen at op5.com>
   Date: Mon Dec  3 14:23:58 2018 +0000
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=e5eccb6

check_icmp: removed outcommented code

Signed-off-by: Jacob Hansen <jhansen at op5.com>

---

 plugins-root/check_icmp.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index b978ee1..749e2d4 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -592,13 +592,6 @@ main(int argc, char **argv)
 		sockets |= HAVE_ICMP;
 	else icmp_sockerrno = errno;
 
-	/* if((udp_sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1) */
-	/* 	sockets |= HAVE_UDP; */
-	/* else udp_sockerrno = errno; */
-
-	/* if((tcp_sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) != -1) */
-	/* 	sockets |= HAVE_TCP; */
-	/* else tcp_sockerrno = errno; */
 
 #ifdef SO_TIMESTAMP
 	if(setsockopt(icmp_sock, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on)))



More information about the Commits mailing list