All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] agetty: remove variable that is set but not read
@ 2017-04-02  8:14 Sami Kerola
  2017-04-02  8:14 ` [PATCH 2/3] lib/cpuset: stop changing variable that is " Sami Kerola
  2017-04-02  8:14 ` [PATCH 3/3] agetty: make --remote to forward --nohostname as -H to login Sami Kerola
  0 siblings, 2 replies; 14+ messages in thread
From: Sami Kerola @ 2017-04-02  8:14 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 term-utils/agetty.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index da6c9e5e3..6a2085a3c 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -1279,15 +1279,10 @@ static void termio_init(struct options *op, struct termios *tp)
 
 	/* Check for terminal size and if not found set default */
 	if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == 0) {
-		int set = 0;
-		if (ws.ws_row == 0) {
+		if (ws.ws_row == 0)
 			ws.ws_row = 24;
-			set++;
-		}
-		if (ws.ws_col == 0) {
+		if (ws.ws_col == 0)
 			ws.ws_col = 80;
-			set++;
-		}
 		if (ioctl(STDIN_FILENO, TIOCSWINSZ, &ws))
 			debug("TIOCSWINSZ ioctl failed\n");
 	}
-- 
2.12.2


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

end of thread, other threads:[~2017-04-10 13:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-02  8:14 [PATCH 1/3] agetty: remove variable that is set but not read Sami Kerola
2017-04-02  8:14 ` [PATCH 2/3] lib/cpuset: stop changing variable that is " Sami Kerola
2017-04-02  8:14 ` [PATCH 3/3] agetty: make --remote to forward --nohostname as -H to login Sami Kerola
2017-04-03  1:13   ` J William Piggott
2017-04-03  8:40     ` Sami Kerola
2017-04-03 21:20       ` Sami Kerola
2017-04-05  1:03         ` J William Piggott
2017-04-05  8:51           ` Karel Zak
2017-04-05 15:24             ` J William Piggott
2017-04-05 23:33         ` J William Piggott
2017-04-06  8:41           ` Karel Zak
2017-04-06 14:21             ` [PATCH] agetty: various man-page fixes J William Piggott
2017-04-10 13:47               ` Karel Zak
2017-04-03  8:56   ` [PATCH 3/3] agetty: make --remote to forward --nohostname as -H to login 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.