All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] utmpdump: remove unnecessary variable
@ 2017-03-29 21:35 Sami Kerola
  2017-03-31 10:58 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Sami Kerola @ 2017-03-29 21:35 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 login-utils/utmpdump.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/login-utils/utmpdump.c b/login-utils/utmpdump.c
index 02e13ea88..fb07e19d0 100644
--- a/login-utils/utmpdump.c
+++ b/login-utils/utmpdump.c
@@ -268,7 +268,6 @@ static void undump(FILE *in, FILE *out)
 {
 	struct utmpx ut;
 	char s_addr[INET6_ADDRSTRLEN + 1], s_time[29], *linestart, *line;
-	int count = 0;
 
 	linestart = xmalloc(1024 * sizeof(*linestart));
 	s_time[28] = 0;
@@ -293,8 +292,6 @@ static void undump(FILE *in, FILE *out)
 		ut.ut_tv.tv_usec = strtousec(s_time);
 
 		ignore_result( fwrite(&ut, sizeof(ut), 1, out) );
-
-		++count;
 	}
 
 	free(linestart);
-- 
2.12.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] utmpdump: remove unnecessary variable
  2017-03-29 21:35 [PATCH] utmpdump: remove unnecessary variable Sami Kerola
@ 2017-03-31 10:58 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2017-03-31 10:58 UTC (permalink / raw)
  To: Sami Kerola; +Cc: util-linux

On Wed, Mar 29, 2017 at 10:35:05PM +0100, Sami Kerola wrote:
>  login-utils/utmpdump.c | 3 ---
>  1 file changed, 3 deletions(-)

Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-31 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 21:35 [PATCH] utmpdump: remove unnecessary variable Sami Kerola
2017-03-31 10:58 ` Karel Zak

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.