]> git.proxmox.com Git - mirror_qemu.git/commitdiff
9pfs: fix XattrOperations typedef
authorGreg Kurz <groug@kaod.org>
Mon, 8 Jan 2018 10:18:22 +0000 (11:18 +0100)
committerGreg Kurz <groug@kaod.org>
Mon, 8 Jan 2018 10:18:22 +0000 (11:18 +0100)
To comply with the QEMU coding style.

Signed-off-by: Greg Kurz <groug@kaod.org>
fsdev/file-op-9p.h
hw/9pfs/9p-xattr.h

index 474c79d003f6fc4b9a20538bde8445deef3f5485..05b3ef35746238d982df49ebba181e63640f9b4d 100644 (file)
@@ -30,7 +30,6 @@ typedef struct FsCred
     dev_t   fc_rdev;
 } FsCred;
 
-struct xattr_operations;
 struct FsContext;
 struct V9fsPath;
 
@@ -67,6 +66,8 @@ typedef struct extended_ops {
 
 
 typedef struct FileOperations FileOperations;
+typedef struct XattrOperations XattrOperations;
+
 /*
  * Structure to store the various fsdev's passed through command line.
  */
@@ -85,7 +86,7 @@ typedef struct FsContext
     uid_t uid;
     char *fs_root;
     int export_flags;
-    struct xattr_operations **xops;
+    XattrOperations **xops;
     struct extended_ops exops;
     FsThrottle *fst;
     /* fs driver specific data */
index 0d83996575e1f1b217ad275da2b7f272b4f8a40d..35bcd24f77b1ab0c6cb0629e5fceb9dcf8f8f250 100644 (file)
@@ -16,8 +16,7 @@
 
 #include "qemu/xattr.h"
 
-typedef struct xattr_operations
-{
+struct XattrOperations {
     const char *name;
     ssize_t (*getxattr)(FsContext *ctx, const char *path,
                         const char *name, void *value, size_t size);
@@ -27,7 +26,7 @@ typedef struct xattr_operations
                     void *value, size_t size, int flags);
     int (*removexattr)(FsContext *ctx,
                        const char *path, const char *name);
-} XattrOperations;
+};
 
 ssize_t local_getxattr_nofollow(FsContext *ctx, const char *path,
                                 const char *name, void *value, size_t size);