Made the patch argument to vfs->which const.
Этот коммит содержится в:
родитель
9d41314d09
Коммит
b472c18c79
@ -90,7 +90,7 @@ struct archive {
|
||||
|
||||
static struct entry *extfs_find_entry (struct entry *dir, char *name,
|
||||
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_free (vfsid id);
|
||||
|
||||
@ -1302,7 +1302,7 @@ static int extfs_init (struct vfs_class *me)
|
||||
}
|
||||
|
||||
/* 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;
|
||||
|
||||
|
@ -260,7 +260,7 @@ local_munmap (struct vfs_class *me, caddr_t addr, size_t len, void *data)
|
||||
#endif
|
||||
|
||||
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 */
|
||||
}
|
||||
|
@ -388,7 +388,7 @@ sfs_done (struct vfs_class *me)
|
||||
}
|
||||
|
||||
static int
|
||||
sfs_which (struct vfs_class *me, char *path)
|
||||
sfs_which (struct vfs_class *me, const char *path)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -27,7 +27,7 @@ struct vfs_class {
|
||||
void (*done) (struct vfs_class *me);
|
||||
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,
|
||||
int mode);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user