static struct namespace_file{
int nstype;
- char *name;
+ const char *name;
int fd;
} namespace_files[] = {
/* Careful the order is significant in this array.
static int root_fd = -1;
static int wd_fd = -1;
-static void open_target_fd(int *fd, const char *type, char *path)
+static void open_target_fd(int *fd, const char *type, const char *path)
{
char pathbuf[PATH_MAX];
err(EXIT_FAILURE, _("open of '%s' failed"), path);
}
-static void open_namespace_fd(int nstype, char *path)
+static void open_namespace_fd(int nstype, const char *path)
{
struct namespace_file *nsfile;