From: Glenn L McGrath Date: Fri, 5 Mar 2004 12:55:30 +0000 (-0000) Subject: Patch by Felipe Kellermann to fix a compiler compatability problem X-Git-Tag: 1_00_pre9~93 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c45146cf244fb5dd6c2f6b7b7be696e5a56fa166;p=oweals%2Fbusybox.git Patch by Felipe Kellermann to fix a compiler compatability problem --- diff --git a/shell/lash.c b/shell/lash.c index 6969173c8..30cbe416e 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -1457,14 +1457,14 @@ static int busy_loop(FILE * input) int i; int inbg; int status; - newjob.job_list = &job_list; - newjob.job_context = DEFAULT_CONTEXT; #ifdef CONFIG_LASH_JOB_CONTROL - pid_t parent_pgrp; - - /* save current owner of TTY so we can restore it on exit */ - parent_pgrp = tcgetpgrp(shell_terminal); + pid_t parent_pgrp; + + /* save current owner of TTY so we can restore it on exit */ + parent_pgrp = tcgetpgrp(shell_terminal); #endif + newjob.job_list = &job_list; + newjob.job_context = DEFAULT_CONTEXT; command = (char *) xcalloc(BUFSIZ, sizeof(char));