diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 2 | ||||
-rw-r--r-- | shell/lash_unused.c | 8 |
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 */ |
117 | static void checkjobs(struct jobset *job_list); | 117 | static void checkjobs(struct jobset *job_list); |
118 | static void remove_job(struct jobset *j_list, struct job *job); | 118 | static void remove_job(struct jobset *j_list, struct job *job); |
119 | static int get_command_bufsiz(FILE * source, char *command); | 119 | static int get_command_bufsiz(FILE *source, char *command); |
120 | static int parse_command(char **command_ptr, struct job *job, int *inbg); | 120 | static int parse_command(char **command_ptr, struct job *job, int *inbg); |
121 | static int run_command(struct job *newjob, int inbg, int outpipe[2]); | 121 | static int run_command(struct job *newjob, int inbg, int outpipe[2]); |
122 | static int pseudo_exec(struct child_prog *cmd) ATTRIBUTE_NORETURN; | 122 | static int pseudo_exec(struct child_prog *cmd) ATTRIBUTE_NORETURN; |
123 | static int busy_loop(FILE * input); | 123 | static 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) | |||
643 | static line_input_t *line_input_state; | 643 | static line_input_t *line_input_state; |
644 | #endif | 644 | #endif |
645 | 645 | ||
646 | static int get_command_bufsiz(FILE * source, char *command) | 646 | static 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 | ||
1329 | static int busy_loop(FILE * input) | 1329 | static int busy_loop(FILE *input) |
1330 | { | 1330 | { |
1331 | char *command; | 1331 | char *command; |
1332 | char *next_command = NULL; | 1332 | char *next_command = NULL; |