/* 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);