[hackers] [PATCH 08/17] Fix type of c in execsh()

From: quinq <quinq_AT_fifth.space>
Date: Tue, 6 Mar 2018 12:58:00 +0100

From: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>

C is compared against EOF, so it cannot be char.
---
 ed.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ed.c b/ed.c
index dcd91d1..fb4faf9 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -888,8 +888,8 @@ static void
 execsh(void)
 {
 	static String cmd;
-	char c, *p;
-	int repl = 0;
+	char *p;
+	int c, repl = 0;
 
 	skipblank();
 	if ((c = input()) != '!') {
-- 
2.14.2
Received on Tue Mar 06 2018 - 12:58:00 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 06 2018 - 13:02:19 CET