summaryrefslogtreecommitdiff
path: root/lash.c
diff options
context:
space:
mode:
authorEric Andersen2001-05-11 18:08:16 +0000
committerEric Andersen2001-05-11 18:08:16 +0000
commitcfa88ecb7268006eb3d25260892b5b7f91d1e62b (patch)
tree4f434a00d946611478df8e3660070bfa017ecf3f /lash.c
parent5f265b755a92e7efdbd0d18694913209dfd9e055 (diff)
downloadbusybox-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.zip
busybox-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.tar.gz
Fix up some silly warnings
Diffstat (limited to 'lash.c')
-rw-r--r--lash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lash.c b/lash.c
index 0129d6c..89a8fe6 100644
--- a/lash.c
+++ b/lash.c
@@ -216,7 +216,7 @@ unsigned int shell_context; /* Used in cmdedit.c to reset the
/* Globals that are static to this file */
-static char *cwd;
+static const char *cwd;
static char *local_pending_command = NULL;
static struct jobset job_list = { NULL, NULL };
static int argc;
@@ -296,7 +296,7 @@ static int builtin_cd(struct child_prog *child)
printf("cd: %s: %m\n", newdir);
return EXIT_FAILURE;
}
- cwd = xgetcwd(cwd);
+ cwd = xgetcwd((char *)cwd);
if (!cwd)
cwd = unknown;
return EXIT_SUCCESS;
@@ -413,7 +413,7 @@ static int builtin_jobs(struct child_prog *child)
/* built-in 'pwd' handler */
static int builtin_pwd(struct child_prog *dummy)
{
- cwd = xgetcwd(cwd);
+ cwd = xgetcwd((char *)cwd);
if (!cwd)
cwd = unknown;
printf( "%s\n", cwd);