From 49861be1f28e95add07069ea54defa5dd77e742d Mon Sep 17 00:00:00 2001 From: Kevin Chase Date: Sat, 7 Apr 2012 10:15:52 -0700 Subject: Replace ?: gcc extension with standard code --- toys/toysh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/toysh.c') diff --git a/toys/toysh.c b/toys/toysh.c index 23b88c3d..365c47fc 100644 --- a/toys/toysh.c +++ b/toys/toysh.c @@ -372,7 +372,7 @@ void toysh_main(void) for (;;) { char *command = 0; if (!f) xputc('$'); - if (1 > getline(&command, &cmdlen, f ? : stdin)) break; + if (1 > getline(&command, &cmdlen, f ? f : stdin)) break; handle(command); free(command); } -- cgit v1.2.3