sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 0732529fef748049054cde3db103276bbd1fe98a
parent a5d268c40990ffe064a5b1f5b8a819238c2fb5d7
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun,  4 Mar 2018 14:56:44 +0100

Fix type of c in execsh()

C is compared against EOF, so it cannot be char.

Diffstat:
Med.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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()) != '!') {