aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-11 18:08:16 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-11 18:08:16 +0000
commitddc90ed562c79cc86afe05c200ec2721c15c5f63 (patch)
tree4f434a00d946611478df8e3660070bfa017ecf3f /shell/lash.c
parent8ff167e7105b330d069ffff351be3eae1df337e8 (diff)
downloadbusybox-w32-ddc90ed562c79cc86afe05c200ec2721c15c5f63.tar.gz
busybox-w32-ddc90ed562c79cc86afe05c200ec2721c15c5f63.tar.bz2
busybox-w32-ddc90ed562c79cc86afe05c200ec2721c15c5f63.zip
Fix up some silly warnings
git-svn-id: svn://busybox.net/trunk/busybox@2614 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 0129d6c02..89a8fe6a5 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -216,7 +216,7 @@ unsigned int shell_context; /* Used in cmdedit.c to reset the
216 216
217 217
218/* Globals that are static to this file */ 218/* Globals that are static to this file */
219static char *cwd; 219static const char *cwd;
220static char *local_pending_command = NULL; 220static char *local_pending_command = NULL;
221static struct jobset job_list = { NULL, NULL }; 221static struct jobset job_list = { NULL, NULL };
222static int argc; 222static int argc;
@@ -296,7 +296,7 @@ static int builtin_cd(struct child_prog *child)
296 printf("cd: %s: %m\n", newdir); 296 printf("cd: %s: %m\n", newdir);
297 return EXIT_FAILURE; 297 return EXIT_FAILURE;
298 } 298 }
299 cwd = xgetcwd(cwd); 299 cwd = xgetcwd((char *)cwd);
300 if (!cwd) 300 if (!cwd)
301 cwd = unknown; 301 cwd = unknown;
302 return EXIT_SUCCESS; 302 return EXIT_SUCCESS;
@@ -413,7 +413,7 @@ static int builtin_jobs(struct child_prog *child)
413/* built-in 'pwd' handler */ 413/* built-in 'pwd' handler */
414static int builtin_pwd(struct child_prog *dummy) 414static int builtin_pwd(struct child_prog *dummy)
415{ 415{
416 cwd = xgetcwd(cwd); 416 cwd = xgetcwd((char *)cwd);
417 if (!cwd) 417 if (!cwd)
418 cwd = unknown; 418 cwd = unknown;
419 printf( "%s\n", cwd); 419 printf( "%s\n", cwd);