adfs: constify adfs_dir_ops structures

The adfs_dir_ops structures are never modified, so declare them as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Julia Lawall
2015-11-21 16:15:37 +01:00
committed by Al Viro
parent b896fb35ca
commit 0125f504ed
4 changed files with 8 additions and 8 deletions

View File

@@ -476,7 +476,7 @@ adfs_f_free(struct adfs_dir *dir)
dir->sb = NULL;
}
struct adfs_dir_ops adfs_f_dir_ops = {
const struct adfs_dir_ops adfs_f_dir_ops = {
.read = adfs_f_read,
.setpos = adfs_f_setpos,
.getnext = adfs_f_getnext,