All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Synacek <jsynacek@redhat.com>
To: yoshfuji@linux-ipv6.org
Cc: netdev@vger.kernel.org
Subject: [PATCH] iputils: clockdiff: remove unused variable
Date: Mon, 12 Nov 2012 09:38:29 +0100	[thread overview]
Message-ID: <50A0B585.4030603@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

Hello,

attached is a small patch that removes an unused variable.

Cheers,

-- 
Jan Synacek
Software Engineer, BaseOS team Brno, Red Hat

[-- Attachment #2: 0001-clockdiff-remove-unused-variable.patch --]
[-- Type: text/x-patch, Size: 1001 bytes --]

>From 43edd5f73b1c6d1d6c033076c3ebcd43bf169594 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
Date: Mon, 12 Nov 2012 09:31:53 +0100
Subject: [PATCH] clockdiff: remove unused variable

Signed-off-by: Jan Synacek <jsynacek@redhat.com>
---
 clockdiff.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clockdiff.c b/clockdiff.c
index 32590d7..7c1ea1b 100644
--- a/clockdiff.c
+++ b/clockdiff.c
@@ -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
-- 
1.7.11.7


             reply	other threads:[~2012-11-12  8:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12  8:38 Jan Synacek [this message]
2012-11-12 13:45 ` [PATCH] iputils: clockdiff: remove unused variable YOSHIFUJI Hideaki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50A0B585.4030603@redhat.com \
    --to=jsynacek@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.