summaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-11 18:08:16 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-11 18:08:16 +0000
commitcfa88ecb7268006eb3d25260892b5b7f91d1e62b (patch)
tree4f434a00d946611478df8e3660070bfa017ecf3f /shell/hush.c
parent5f265b755a92e7efdbd0d18694913209dfd9e055 (diff)
downloadbusybox-w32-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.tar.gz
busybox-w32-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.tar.bz2
busybox-w32-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.zip
Fix up some silly warnings
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 9a2243a89..5ea946066 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -244,7 +244,7 @@ static char map[256];
244static int fake_mode=0; 244static int fake_mode=0;
245static int interactive=0; 245static int interactive=0;
246static struct close_me *close_me_head = NULL; 246static struct close_me *close_me_head = NULL;
247static char *cwd; 247static const char *cwd;
248static struct jobset *job_list; 248static struct jobset *job_list;
249static unsigned int last_bg_pid=0; 249static unsigned int last_bg_pid=0;
250static char *PS1; 250static char *PS1;
@@ -428,7 +428,7 @@ static int builtin_cd(struct child_prog *child)
428 printf("cd: %s: %s\n", newdir, strerror(errno)); 428 printf("cd: %s: %s\n", newdir, strerror(errno));
429 return EXIT_FAILURE; 429 return EXIT_FAILURE;
430 } 430 }
431 cwd = xgetcwd(cwd); 431 cwd = xgetcwd((char *)cwd);
432 if (!cwd) 432 if (!cwd)
433 cwd = unknown; 433 cwd = unknown;
434 return EXIT_SUCCESS; 434 return EXIT_SUCCESS;
@@ -569,7 +569,7 @@ static int builtin_jobs(struct child_prog *child)
569/* built-in 'pwd' handler */ 569/* built-in 'pwd' handler */
570static int builtin_pwd(struct child_prog *dummy) 570static int builtin_pwd(struct child_prog *dummy)
571{ 571{
572 cwd = xgetcwd(cwd); 572 cwd = xgetcwd((char *)cwd);
573 if (!cwd) 573 if (!cwd)
574 cwd = unknown; 574 cwd = unknown;
575 puts(cwd); 575 puts(cwd);