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;
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;
/* 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);
/* 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;
printf("cd: %s: %m\n", newdir);
return EXIT_FAILURE;
}
- cwd = xgetcwd(cwd);
+ cwd = xgetcwd((char *)cwd);
if (!cwd)
cwd = unknown;
return EXIT_SUCCESS;
/* 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);
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;
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;
/* 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);
/* 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;
printf("cd: %s: %m\n", newdir);
return EXIT_FAILURE;
}
- cwd = xgetcwd(cwd);
+ cwd = xgetcwd((char *)cwd);
if (!cwd)
cwd = unknown;
return EXIT_SUCCESS;
/* 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);