diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-05-11 18:08:16 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-05-11 18:08:16 +0000 |
commit | cfa88ecb7268006eb3d25260892b5b7f91d1e62b (patch) | |
tree | 4f434a00d946611478df8e3660070bfa017ecf3f | |
parent | 5f265b755a92e7efdbd0d18694913209dfd9e055 (diff) | |
download | busybox-w32-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.tar.gz busybox-w32-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.tar.bz2 busybox-w32-cfa88ecb7268006eb3d25260892b5b7f91d1e62b.zip |
Fix up some silly warnings
-rw-r--r-- | hush.c | 6 | ||||
-rw-r--r-- | lash.c | 6 | ||||
-rw-r--r-- | shell/hush.c | 6 | ||||
-rw-r--r-- | shell/lash.c | 6 |
4 files changed, 12 insertions, 12 deletions
@@ -244,7 +244,7 @@ static char map[256]; | |||
244 | static int fake_mode=0; | 244 | static int fake_mode=0; |
245 | static int interactive=0; | 245 | static int interactive=0; |
246 | static struct close_me *close_me_head = NULL; | 246 | static struct close_me *close_me_head = NULL; |
247 | static char *cwd; | 247 | static const char *cwd; |
248 | static struct jobset *job_list; | 248 | static struct jobset *job_list; |
249 | static unsigned int last_bg_pid=0; | 249 | static unsigned int last_bg_pid=0; |
250 | static char *PS1; | 250 | static 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 */ |
570 | static int builtin_pwd(struct child_prog *dummy) | 570 | static 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); |
@@ -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 */ |
219 | static char *cwd; | 219 | static const char *cwd; |
220 | static char *local_pending_command = NULL; | 220 | static char *local_pending_command = NULL; |
221 | static struct jobset job_list = { NULL, NULL }; | 221 | static struct jobset job_list = { NULL, NULL }; |
222 | static int argc; | 222 | static 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 */ |
414 | static int builtin_pwd(struct child_prog *dummy) | 414 | static 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); |
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]; | |||
244 | static int fake_mode=0; | 244 | static int fake_mode=0; |
245 | static int interactive=0; | 245 | static int interactive=0; |
246 | static struct close_me *close_me_head = NULL; | 246 | static struct close_me *close_me_head = NULL; |
247 | static char *cwd; | 247 | static const char *cwd; |
248 | static struct jobset *job_list; | 248 | static struct jobset *job_list; |
249 | static unsigned int last_bg_pid=0; | 249 | static unsigned int last_bg_pid=0; |
250 | static char *PS1; | 250 | static 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 */ |
570 | static int builtin_pwd(struct child_prog *dummy) | 570 | static 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); |
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 */ |
219 | static char *cwd; | 219 | static const char *cwd; |
220 | static char *local_pending_command = NULL; | 220 | static char *local_pending_command = NULL; |
221 | static struct jobset job_list = { NULL, NULL }; | 221 | static struct jobset job_list = { NULL, NULL }; |
222 | static int argc; | 222 | static 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 */ |
414 | static int builtin_pwd(struct child_prog *dummy) | 414 | static 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); |