aboutsummaryrefslogtreecommitdiff
path: root/lash.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-20 22:59:16 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-20 22:59:16 +0000
commit56939b490246322e6473d7f47ba2fe73be1a7054 (patch)
treec9932f9c89de1452ae47241fbf2823b7a5165b1b /lash.c
parent7f918bc591c5d6edca09766fdcb294e55a9d1ca6 (diff)
downloadbusybox-w32-56939b490246322e6473d7f47ba2fe73be1a7054.tar.gz
busybox-w32-56939b490246322e6473d7f47ba2fe73be1a7054.tar.bz2
busybox-w32-56939b490246322e6473d7f47ba2fe73be1a7054.zip
Fix a warning in sh.c. Remove use of getline() in md5sum since
nobody else uses it and it is a GNU extension anyways... git-svn-id: svn://busybox.net/trunk/busybox@1482 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'lash.c')
-rw-r--r--lash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lash.c b/lash.c
index 590f5ee89..b8ddc87c1 100644
--- a/lash.c
+++ b/lash.c
@@ -137,6 +137,8 @@ static int builtin_if(struct child_prog *cmd);
137static int builtin_then(struct child_prog *cmd); 137static int builtin_then(struct child_prog *cmd);
138static int builtin_else(struct child_prog *cmd); 138static int builtin_else(struct child_prog *cmd);
139static int builtin_fi(struct child_prog *cmd); 139static int builtin_fi(struct child_prog *cmd);
140/* function prototypes for shell stuff */
141static int run_command_predicate(char *cmd);
140#endif 142#endif
141 143
142 144
@@ -146,7 +148,6 @@ static int get_command(FILE * source, char *command);
146static int parse_command(char **command_ptr, struct job *job, int *inbg); 148static int parse_command(char **command_ptr, struct job *job, int *inbg);
147static int run_command(struct job *newjob, int inbg, int outpipe[2]); 149static int run_command(struct job *newjob, int inbg, int outpipe[2]);
148static int pseudo_exec(struct child_prog *cmd) __attribute__ ((noreturn)); 150static int pseudo_exec(struct child_prog *cmd) __attribute__ ((noreturn));
149static int run_command_predicate(char *cmd);
150static int busy_loop(FILE * input); 151static int busy_loop(FILE * input);
151 152
152 153
@@ -580,6 +581,7 @@ static int builtin_unset(struct child_prog *child)
580 return EXIT_SUCCESS; 581 return EXIT_SUCCESS;
581} 582}
582 583
584#ifdef BB_FEATURE_SH_IF_EXPRESSIONS
583/* currently used by if/then/else. 585/* currently used by if/then/else.
584 * Needlessly (?) forks and reparses the command line. 586 * Needlessly (?) forks and reparses the command line.
585 * But pseudo_exec on the pre-parsed args doesn't have the 587 * But pseudo_exec on the pre-parsed args doesn't have the
@@ -596,6 +598,7 @@ static int run_command_predicate(char *cmd)
596 local_pending_command[n]='\0'; 598 local_pending_command[n]='\0';
597 return( busy_loop(NULL)); 599 return( busy_loop(NULL));
598} 600}
601#endif
599 602
600/* free up all memory from a job */ 603/* free up all memory from a job */
601static void free_job(struct job *cmd) 604static void free_job(struct job *cmd)