aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 88f2b5bd6..90eaf6faf 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14052,11 +14052,11 @@ procargs(char **argv)
14052 int login_sh; 14052 int login_sh;
14053 14053
14054 xargv = argv; 14054 xargv = argv;
14055 login_sh = xargv[0] && xargv[0][0] == '-';
14055#if NUM_SCRIPTS > 0 14056#if NUM_SCRIPTS > 0
14056 if (minusc) 14057 if (minusc)
14057 goto setarg0; 14058 goto setarg0;
14058#endif 14059#endif
14059 login_sh = xargv[0] && xargv[0][0] == '-';
14060 arg0 = xargv[0]; 14060 arg0 = xargv[0];
14061 /* if (xargv[0]) - mmm, this is always true! */ 14061 /* if (xargv[0]) - mmm, this is always true! */
14062 xargv++; 14062 xargv++;
@@ -14164,7 +14164,11 @@ extern int etext();
14164 * is used to figure out how far we had gotten. 14164 * is used to figure out how far we had gotten.
14165 */ 14165 */
14166int ash_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 14166int ash_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
14167#if NUM_SCRIPTS > 0
14168int ash_main(int argc, char **argv)
14169#else
14167int ash_main(int argc UNUSED_PARAM, char **argv) 14170int ash_main(int argc UNUSED_PARAM, char **argv)
14171#endif
14168/* note: 'argc' is used only if embedded scripts are enabled */ 14172/* note: 'argc' is used only if embedded scripts are enabled */
14169{ 14173{
14170 volatile smallint state; 14174 volatile smallint state;