Skip to contentSkip to conversation

iputils: clockdiff: remove unused variable

PATCH Applied Jan Synacek 2 participants 2 messages Nov 12, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iputils: clockdiff: remove unused variable

Hello,

attached is a small patch that removes an unused variable.

Cheers,

Signature · 2 lines
Jan Synacek
Software Engineer, BaseOS team Brno, Red Hat
Quoted 1 line

From 43edd5f73b1c6d1d6c033076c3ebcd43bf169594 Mon Sep 17 00:00:00 2001

From: Jan Synacek <[email protected]>
Date: Mon, 12 Nov 2012 09:31:53 +0100
Subject: [PATCH] clockdiff: remove unused variable

---
 clockdiff.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
clockdiff.c +1 -2
index 32590d7..7c1ea1b 100644
@@ -129,7 +129,7 @@ measure(struct sockaddr_in * addr)
 	int msgcount;
 	int cc, count;
 	fd_set ready;
-	long sendtime, recvtime, histime,  histime1;
+	long sendtime, recvtime, histime;
 	long min1, min2, diff;
 	long delta1, delta2;
 	struct timeval tv1, tout;
@@ -243,7 +243,6 @@ empty:
 			  rtt_sigma = (rtt_sigma *3 + abs(diff-rtt))/4;
 			  msgcount++;
 			  histime = ntohl(((__u32*)(icp+1))[1]);
-			  histime1 = ntohl(((__u32*)(icp+1))[2]);
 		/*
 		 * a hosts using a time format different from
 		 * ms. since midnight UT (as per RFC792) should
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 1 line · Jan Synacek

attached is a small patch that removes an unused variable.

Applied, thanks.
Unfortunately this slipped from s2012112. Sorry.

-yoshfuji