Made the patch argument to vfs->which const.

This commit is contained in:
Roland Illig 2004-08-16 19:47:21 +00:00
parent 9d41314d09
commit b472c18c79
4 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,7 @@ struct archive {
static struct entry *extfs_find_entry (struct entry *dir, char *name, static struct entry *extfs_find_entry (struct entry *dir, char *name,
int make_dirs, int make_file); int make_dirs, int make_file);
static int extfs_which (struct vfs_class *me, char *path); static int extfs_which (struct vfs_class *me, const char *path);
static void extfs_remove_entry (struct entry *e); static void extfs_remove_entry (struct entry *e);
static void extfs_free (vfsid id); static void extfs_free (vfsid id);
@ -1302,7 +1302,7 @@ static int extfs_init (struct vfs_class *me)
} }
/* Do NOT use me argument in this function */ /* Do NOT use me argument in this function */
static int extfs_which (struct vfs_class *me, char *path) static int extfs_which (struct vfs_class *me, const char *path)
{ {
int i; int i;

View File

@ -260,7 +260,7 @@ local_munmap (struct vfs_class *me, caddr_t addr, size_t len, void *data)
#endif #endif
static int static int
local_which (struct vfs_class *me, char *path) local_which (struct vfs_class *me, const char *path)
{ {
return 0; /* Every path which other systems do not like is expected to be ours */ return 0; /* Every path which other systems do not like is expected to be ours */
} }

View File

@ -388,7 +388,7 @@ sfs_done (struct vfs_class *me)
} }
static int static int
sfs_which (struct vfs_class *me, char *path) sfs_which (struct vfs_class *me, const char *path)
{ {
int i; int i;

View File

@ -27,7 +27,7 @@ struct vfs_class {
void (*done) (struct vfs_class *me); void (*done) (struct vfs_class *me);
void (*fill_names) (struct vfs_class *me, fill_names_f); void (*fill_names) (struct vfs_class *me, fill_names_f);
int (*which) (struct vfs_class *me, /*FIXME:const*/ char *path); int (*which) (struct vfs_class *me, const char *path);
void *(*open) (struct vfs_class *me, const char *fname, int flags, void *(*open) (struct vfs_class *me, const char *fname, int flags,
int mode); int mode);