diff options
author | Eric Andersen | 2001-05-11 18:08:16 +0000 |
---|---|---|
committer | Eric Andersen | 2001-05-11 18:08:16 +0000 |
commit | cfa88ecb7268006eb3d25260892b5b7f91d1e62b (patch) | |
tree | 4f434a00d946611478df8e3660070bfa017ecf3f /hush.c | |
parent | 5f265b755a92e7efdbd0d18694913209dfd9e055 (diff) | |
download | busybox-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.zip busybox-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.tar.gz |
Fix up some silly warnings
Diffstat (limited to 'hush.c')
-rw-r--r-- | hush.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -244,7 +244,7 @@ static char map[256]; static int fake_mode=0; static int interactive=0; static struct close_me *close_me_head = NULL; -static char *cwd; +static const char *cwd; static struct jobset *job_list; static unsigned int last_bg_pid=0; static char *PS1; @@ -428,7 +428,7 @@ static int builtin_cd(struct child_prog *child) printf("cd: %s: %s\n", newdir, strerror(errno)); return EXIT_FAILURE; } - cwd = xgetcwd(cwd); + cwd = xgetcwd((char *)cwd); if (!cwd) cwd = unknown; return EXIT_SUCCESS; @@ -569,7 +569,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; puts(cwd); |