[Tux3] tux3fuse fix with -Werror
Pranith Kumar
bobby.prani at gmail.com
Fri Oct 17 04:32:03 PDT 2008
tux3fuse craps about a structure initialization which is actually true.
This just makes it pretty
--
Pranith.
--- tux3fuse.c.orig 2008-10-17 16:59:20.000000000 +0530
+++ tux3fuse.c 2008-10-17 16:41:21.000000000 +0530
@@ -73,14 +73,16 @@ static void tux3_lookup(fuse_req_t req,
if (inode)
{
struct fuse_entry_param ep = {
- .attr.st_mode = inode->i_mode,
- .attr.st_atime = inode->i_atime,
- .attr.st_mtime = inode->i_mtime,
- .attr.st_ctime = inode->i_ctime,
- .attr.st_size = inode->i_size,
- .attr.st_uid = inode->i_uid,
- .attr.st_gid = inode->i_gid,
- .attr.st_nlink = inode->i_links,
+ .attr = {
+ .st_mode = inode->i_mode,
+ .st_atime = inode->i_atime,
+ .st_mtime = inode->i_mtime,
+ .st_ctime = inode->i_ctime,
+ .st_size = inode->i_size,
+ .st_uid = inode->i_uid,
+ .st_gid = inode->i_gid,
+ .st_nlink = inode->i_links,
+ },
.ino = (fuse_ino_t)inode,
.generation = 1,
@@ -149,14 +151,16 @@ static void tux3_create(fuse_req_t req,
if (inode)
{
struct fuse_entry_param fep = {
- .attr.st_mode = inode->i_mode,
- .attr.st_atime = inode->i_atime,
- .attr.st_mtime = inode->i_mtime,
- .attr.st_ctime = inode->i_ctime,
- .attr.st_size = inode->i_size,
- .attr.st_uid = inode->i_uid,
- .attr.st_gid = inode->i_gid,
- .attr.st_nlink = inode->i_links,
+ .attr = {
+ .st_mode = inode->i_mode,
+ .st_atime = inode->i_atime,
+ .st_mtime = inode->i_mtime,
+ .st_ctime = inode->i_ctime,
+ .st_size = inode->i_size,
+ .st_uid = inode->i_uid,
+ .st_gid = inode->i_gid,
+ .st_nlink = inode->i_links,
+ },
.ino = (fuse_ino_t)inode,
.generation = 1,
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list