aboutsummaryrefslogtreecommitdiff
path: root/toys/toysh.c
diff options
context:
space:
mode:
authorKevin Chase <kevincha99@hotmail.com>2012-04-07 10:15:52 -0700
committerKevin Chase <kevincha99@hotmail.com>2012-04-07 10:15:52 -0700
commit49861be1f28e95add07069ea54defa5dd77e742d (patch)
tree0d0088fd717be402e4457611f4cac8686e0c766a /toys/toysh.c
parent0392c177d0f21a8916e4a6835454411d15fe5a9c (diff)
downloadtoybox-49861be1f28e95add07069ea54defa5dd77e742d.tar.gz
Replace ?: gcc extension with standard code
Diffstat (limited to 'toys/toysh.c')
-rw-r--r--toys/toysh.c2
1 files changed, 1 insertions, 1 deletions
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);
}