Commit 9d188d03 authored by Petr Vandrovec's avatar Petr Vandrovec

Convert ncpfs to C99 initializers. By Rusty Trivial Russell.

parent 6a1caddf
...@@ -51,22 +51,22 @@ extern int ncp_symlink(struct inode *, struct dentry *, const char *); ...@@ -51,22 +51,22 @@ extern int ncp_symlink(struct inode *, struct dentry *, const char *);
struct file_operations ncp_dir_operations = struct file_operations ncp_dir_operations =
{ {
read: generic_read_dir, .read = generic_read_dir,
readdir: ncp_readdir, .readdir = ncp_readdir,
ioctl: ncp_ioctl, .ioctl = ncp_ioctl,
}; };
struct inode_operations ncp_dir_inode_operations = struct inode_operations ncp_dir_inode_operations =
{ {
create: ncp_create, .create = ncp_create,
lookup: ncp_lookup, .lookup = ncp_lookup,
unlink: ncp_unlink, .unlink = ncp_unlink,
symlink: ncp_symlink, .symlink = ncp_symlink,
mkdir: ncp_mkdir, .mkdir = ncp_mkdir,
rmdir: ncp_rmdir, .rmdir = ncp_rmdir,
mknod: ncp_mknod, .mknod = ncp_mknod,
rename: ncp_rename, .rename = ncp_rename,
setattr: ncp_notify_change, .setattr = ncp_notify_change,
}; };
/* /*
...@@ -79,17 +79,17 @@ static int ncp_delete_dentry(struct dentry *); ...@@ -79,17 +79,17 @@ static int ncp_delete_dentry(struct dentry *);
static struct dentry_operations ncp_dentry_operations = static struct dentry_operations ncp_dentry_operations =
{ {
d_revalidate: ncp_lookup_validate, .d_revalidate = ncp_lookup_validate,
d_hash: ncp_hash_dentry, .d_hash = ncp_hash_dentry,
d_compare: ncp_compare_dentry, .d_compare = ncp_compare_dentry,
d_delete: ncp_delete_dentry, .d_delete = ncp_delete_dentry,
}; };
struct dentry_operations ncp_root_dentry_operations = struct dentry_operations ncp_root_dentry_operations =
{ {
d_hash: ncp_hash_dentry, .d_hash = ncp_hash_dentry,
d_compare: ncp_compare_dentry, .d_compare = ncp_compare_dentry,
d_delete: ncp_delete_dentry, .d_delete = ncp_delete_dentry,
}; };
......
...@@ -296,16 +296,16 @@ static int ncp_release(struct inode *inode, struct file *file) { ...@@ -296,16 +296,16 @@ static int ncp_release(struct inode *inode, struct file *file) {
struct file_operations ncp_file_operations = struct file_operations ncp_file_operations =
{ {
llseek: remote_llseek, .llseek = remote_llseek,
read: ncp_file_read, .read = ncp_file_read,
write: ncp_file_write, .write = ncp_file_write,
ioctl: ncp_ioctl, .ioctl = ncp_ioctl,
mmap: ncp_mmap, .mmap = ncp_mmap,
release: ncp_release, .release = ncp_release,
fsync: ncp_fsync, .fsync = ncp_fsync,
}; };
struct inode_operations ncp_file_inode_operations = struct inode_operations ncp_file_inode_operations =
{ {
setattr: ncp_notify_change, .setattr = ncp_notify_change,
}; };
...@@ -83,12 +83,12 @@ static void destroy_inodecache(void) ...@@ -83,12 +83,12 @@ static void destroy_inodecache(void)
static struct super_operations ncp_sops = static struct super_operations ncp_sops =
{ {
alloc_inode: ncp_alloc_inode, .alloc_inode = ncp_alloc_inode,
destroy_inode: ncp_destroy_inode, .destroy_inode = ncp_destroy_inode,
drop_inode: generic_delete_inode, .drop_inode = generic_delete_inode,
delete_inode: ncp_delete_inode, .delete_inode = ncp_delete_inode,
put_super: ncp_put_super, .put_super = ncp_put_super,
statfs: ncp_statfs, .statfs = ncp_statfs,
}; };
extern struct dentry_operations ncp_root_dentry_operations; extern struct dentry_operations ncp_root_dentry_operations;
...@@ -792,10 +792,10 @@ static struct super_block *ncp_get_sb(struct file_system_type *fs_type, ...@@ -792,10 +792,10 @@ static struct super_block *ncp_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type ncp_fs_type = { static struct file_system_type ncp_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "ncpfs", .name = "ncpfs",
get_sb: ncp_get_sb, .get_sb = ncp_get_sb,
kill_sb: kill_anon_super, .kill_sb = kill_anon_super,
}; };
static int __init init_ncp_fs(void) static int __init init_ncp_fs(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment