[dev] [PATCH 1/1] remove useless dup()

From: Christian Hesse <list_AT_eworm.de>
Date: Wed, 8 Jul 2015 11:32:57 +0200

From: Christian Hesse <mail_AT_eworm.de>

We are ignoring return value of dup(), so just remove it.

Signed-off-by: Christian Hesse <mail_AT_eworm.de>
---
 st.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/st.c b/st.c
index b89d094..406afa8 100644
--- a/st.c
+++ b/st.c
_AT_@ -1321,7 +1321,6 @@ ttynew(void) {
 		if((cmdfd = open(opt_line, O_RDWR)) < 0)
 			die("open line failed: %s\n", strerror(errno));
 		close(STDIN_FILENO);
-		dup(cmdfd);
 		stty();
 		return;
 	}
-- 
2.4.5
Received on Wed Jul 08 2015 - 11:32:57 CEST

This archive was generated by hypermail 2.3.0 : Wed Jul 08 2015 - 11:36:09 CEST