summaryrefslogtreecommitdiffstats
path: root/sys/fs/hpfs/hpfs_vnops.c
diff options
context:
space:
mode:
authorgleb <gleb@FreeBSD.org>2012-05-25 09:16:59 +0000
committergleb <gleb@FreeBSD.org>2012-05-25 09:16:59 +0000
commitfe722ad5af4b63021329220b59efca9752e6cc2c (patch)
tree780906a18e908e8904cad2e0edbb351f5c34aa43 /sys/fs/hpfs/hpfs_vnops.c
parent7c20c99fdf711cf24555d01420ec10deb619f5e5 (diff)
downloadFreeBSD-src-fe722ad5af4b63021329220b59efca9752e6cc2c.zip
FreeBSD-src-fe722ad5af4b63021329220b59efca9752e6cc2c.tar.gz
Use C99-style initialization for struct dirent in preparation for
changing the structure. Sponsored by: Google Summer of Code 2011
Diffstat (limited to 'sys/fs/hpfs/hpfs_vnops.c')
-rw-r--r--sys/fs/hpfs/hpfs_vnops.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/sys/fs/hpfs/hpfs_vnops.c b/sys/fs/hpfs/hpfs_vnops.c
index ccf4f3c..9abe77c 100644
--- a/sys/fs/hpfs/hpfs_vnops.c
+++ b/sys/fs/hpfs/hpfs_vnops.c
@@ -797,10 +797,21 @@ hpfs_de_uiomove (
}
-static struct dirent hpfs_de_dot =
- { 0, sizeof(struct dirent), DT_DIR, 1, "." };
-static struct dirent hpfs_de_dotdot =
- { 0, sizeof(struct dirent), DT_DIR, 2, ".." };
+static struct dirent hpfs_de_dot = {
+ .d_fileno = 0,
+ .d_reclen = sizeof(struct dirent),
+ .d_type = DT_DIR,
+ .d_namlen = 1,
+ .d_name = "."
+};
+static struct dirent hpfs_de_dotdot = {
+ .d_fileno = 0,
+ .d_reclen = sizeof(struct dirent),
+ .d_type = DT_DIR,
+ .d_namlen = 2,
+ .d_name = ".."
+};
+
int
hpfs_readdir(ap)
struct vop_readdir_args /* {
OpenPOWER on IntegriCloud