From 01c0aa5c30d3edd2097c9d9e177377fa4a770cc7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 31 May 2022 17:53:53 +0200 Subject: [PATCH] libmount: remove unnecessary declarations Signed-off-by: Karel Zak --- libmount/src/hook_mkdir.c | 2 -- libmount/src/hook_mount_legacy.c | 2 -- libmount/src/hook_owner.c | 2 -- libmount/src/hook_subdir.c | 1 - 4 files changed, 7 deletions(-) diff --git a/libmount/src/hook_mkdir.c b/libmount/src/hook_mkdir.c index dd839e0515..6005e7c295 100644 --- a/libmount/src/hook_mkdir.c +++ b/libmount/src/hook_mkdir.c @@ -13,8 +13,6 @@ #include "mountP.h" #include "fileutils.h" -static int hook_prepare_target(struct libmnt_context *cxt, const struct libmnt_hookset *hs, void *data); - static int hookset_deinit(struct libmnt_context *cxt, const struct libmnt_hookset *hs) { void *data = NULL; diff --git a/libmount/src/hook_mount_legacy.c b/libmount/src/hook_mount_legacy.c index c05dc5ed67..a477738562 100644 --- a/libmount/src/hook_mount_legacy.c +++ b/libmount/src/hook_mount_legacy.c @@ -12,8 +12,6 @@ #include "mountP.h" -static int hook_prepare(struct libmnt_context *cxt, const struct libmnt_hookset *hs, void *data); - struct hook_data { unsigned long mountflags; }; diff --git a/libmount/src/hook_owner.c b/libmount/src/hook_owner.c index 5ded9e2c02..fc5981da1d 100644 --- a/libmount/src/hook_owner.c +++ b/libmount/src/hook_owner.c @@ -18,8 +18,6 @@ #include "mountP.h" #include "fileutils.h" -static int hook_prepare_options(struct libmnt_context *cxt, const struct libmnt_hookset *hs, void *data); - struct hook_data { uid_t owner; gid_t group; diff --git a/libmount/src/hook_subdir.c b/libmount/src/hook_subdir.c index 79e02474aa..09025c5b5f 100644 --- a/libmount/src/hook_subdir.c +++ b/libmount/src/hook_subdir.c @@ -19,7 +19,6 @@ #include "mountP.h" #include "fileutils.h" -static int hook_prepare_target(struct libmnt_context *cxt, const struct libmnt_hookset *hs, void *data); static int tmptgt_cleanup(int old_ns_fd); struct hookset_data { -- 2.47.3