From 5558082cd74346d6d3b73a25b7e6f65331641c7e Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 5 Sep 2022 11:34:32 +0200 Subject: [PATCH] util: virFileIsSharedFSType: Pass bitmap of checked fs types as unsigned MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We populate the bits individually so unsigned is the proper type. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/util/virfile.c | 4 ++-- src/util/virfile.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/virfile.c b/src/util/virfile.c index ce541b8946..1def05b6c4 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -3394,7 +3394,7 @@ virFileIsSharedFixFUSE(const char *path, int virFileIsSharedFSType(const char *path, - int fstypes) + unsigned int fstypes) { g_autofree char *dirpath = NULL; char *p = NULL; @@ -3601,7 +3601,7 @@ virFileFindHugeTLBFS(virHugeTLBFS **ret_fs, #else /* defined __linux__ */ int virFileIsSharedFSType(const char *path G_GNUC_UNUSED, - int fstypes G_GNUC_UNUSED) + unsigned int fstypes G_GNUC_UNUSED) { /* XXX implement me :-) */ return 0; diff --git a/src/util/virfile.h b/src/util/virfile.h index 4af1ad9136..8d6df034f8 100644 --- a/src/util/virfile.h +++ b/src/util/virfile.h @@ -224,7 +224,7 @@ enum { VIR_FILE_SHFS_ACFS = (1 << 9), }; -int virFileIsSharedFSType(const char *path, int fstypes) ATTRIBUTE_NONNULL(1); +int virFileIsSharedFSType(const char *path, unsigned int fstypes) ATTRIBUTE_NONNULL(1); int virFileIsSharedFS(const char *path) ATTRIBUTE_NONNULL(1); int virFileIsClusterFS(const char *path) ATTRIBUTE_NONNULL(1); int virFileIsMountPoint(const char *file) ATTRIBUTE_NONNULL(1); -- 2.39.5