From 0732529fef748049054cde3db103276bbd1fe98a Mon Sep 17 00:00:00 2001 From: "Roberto E. Vargas Caballero" Date: Sun, 4 Mar 2018 14:56:44 +0100 Subject: [PATCH] Fix type of c in execsh() 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 @@ -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()) != '!') {