Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37859001
en ru br
ALT Linux repos
S:5.0-alt1
5.0: 2.4b2-alt4
4.1: 2.4b2-alt4
4.0: 2.4b2-alt3.M40.1
3.0: 2.4b2-alt2

Group :: Security/Networking
RPM: fping

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: fping-2.4-alt-cleanup.patch
Download


diff -ub fping-2.4b2_to.orig/fping.c fping-2.4b2_to/fping.c
--- fping-2.4b2_to.orig/fping.c	2001-07-20 21:10:26 +0400
+++ fping-2.4b2_to/fping.c	2002-09-03 15:35:31 +0400
@@ -783,7 +783,6 @@
 		int iBitpos;
 		int iMask = 1;
 		int failed = 0;
-		unsigned long uTemp;
 
 		/* two possible forms are allowed here */
 
@@ -1086,6 +1085,7 @@
 	
 	finish();
 
+	return 0;
 } /* main() */
 
 
@@ -1175,7 +1175,7 @@
 void print_per_system_stats( void )
 #endif /* _NO_PROTO */
 {
-	int i, j, k, avg;
+	int i, j, avg;
 	HOST_ENTRY *h;
 	char *buf;
 	int bufsize;
@@ -1284,11 +1284,10 @@
 void print_per_system_splits( void )
 #endif /* _NO_PROTO */
 {
-	int i, j, k, avg;
+	int i, avg;
 	HOST_ENTRY *h;
 	char *buf;
 	int bufsize;
-	int resp;
 	struct tm *curr_tm;
 
 	bufsize = max_hostname_len + 1;
@@ -1725,7 +1724,6 @@
 #endif /* _NO_PROTO */
 {
 	struct icmp *sent_icmp;
-	struct ip *sent_ip;
 	u_char *c;
 	HOST_ENTRY *h;
 
@@ -2405,7 +2403,7 @@
 void u_sleep( int u_sec )
 #endif /* _NO_PROTO */
 {
-	int nfound, slen, n;
+	int nfound;
 	struct timeval to;
 	fd_set readset, writeset;
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin