aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c2
-rw-r--r--shell/lash_unused.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 032482c6d..72186f970 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -498,7 +498,7 @@ static void syntax(const char *msg)
498 /* Was using fancy stuff: 498 /* Was using fancy stuff:
499 * (interactive_fd ? bb_error_msg : bb_error_msg_and_die)(...params...) 499 * (interactive_fd ? bb_error_msg : bb_error_msg_and_die)(...params...)
500 * but it SEGVs. ?! Oh well... explicit temp ptr works around that */ 500 * but it SEGVs. ?! Oh well... explicit temp ptr works around that */
501 void (*fp)(const char *s, ...); 501 void FAST_FUNC (*fp)(const char *s, ...);
502 502
503 fp = (interactive_fd ? bb_error_msg : bb_error_msg_and_die); 503 fp = (interactive_fd ? bb_error_msg : bb_error_msg_and_die);
504 fp(msg ? "%s: %s" : "syntax error", "syntax error", msg); 504 fp(msg ? "%s: %s" : "syntax error", "syntax error", msg);
diff --git a/shell/lash_unused.c b/shell/lash_unused.c
index d57f584b2..59199ded4 100644
--- a/shell/lash_unused.c
+++ b/shell/lash_unused.c
@@ -116,11 +116,11 @@ static int builtin_read(struct child_prog *cmd);
116/* function prototypes for shell stuff */ 116/* function prototypes for shell stuff */
117static void checkjobs(struct jobset *job_list); 117static void checkjobs(struct jobset *job_list);
118static void remove_job(struct jobset *j_list, struct job *job); 118static void remove_job(struct jobset *j_list, struct job *job);
119static int get_command_bufsiz(FILE * source, char *command); 119static int get_command_bufsiz(FILE *source, char *command);
120static int parse_command(char **command_ptr, struct job *job, int *inbg); 120static int parse_command(char **command_ptr, struct job *job, int *inbg);
121static int run_command(struct job *newjob, int inbg, int outpipe[2]); 121static int run_command(struct job *newjob, int inbg, int outpipe[2]);
122static int pseudo_exec(struct child_prog *cmd) ATTRIBUTE_NORETURN; 122static int pseudo_exec(struct child_prog *cmd) ATTRIBUTE_NORETURN;
123static int busy_loop(FILE * input); 123static int busy_loop(FILE *input);
124 124
125 125
126/* Table of built-in functions (these are non-forking builtins, meaning they 126/* Table of built-in functions (these are non-forking builtins, meaning they
@@ -643,7 +643,7 @@ static inline const char* setup_prompt_string(void)
643static line_input_t *line_input_state; 643static line_input_t *line_input_state;
644#endif 644#endif
645 645
646static int get_command_bufsiz(FILE * source, char *command) 646static int get_command_bufsiz(FILE *source, char *command)
647{ 647{
648 const char *prompt_str; 648 const char *prompt_str;
649 649
@@ -1326,7 +1326,7 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2])
1326 return 0; 1326 return 0;
1327} 1327}
1328 1328
1329static int busy_loop(FILE * input) 1329static int busy_loop(FILE *input)
1330{ 1330{
1331 char *command; 1331 char *command;
1332 char *next_command = NULL; 1332 char *next_command = NULL;