浏览代码

fuse: use flexible array in fuse.h

Use the ISO C standard compliant form instead of the gcc extension in the
interface definition.

Reported-by: Shachar Sharon <ssnail@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Miklos Szeredi 13 年之前
父节点
当前提交
c628ee67fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/fuse.h

+ 1 - 1
include/linux/fuse.h

@@ -593,7 +593,7 @@ struct fuse_dirent {
 	__u64	off;
 	__u32	namelen;
 	__u32	type;
-	char name[0];
+	char name[];
 };
 
 #define FUSE_NAME_OFFSET offsetof(struct fuse_dirent, name)