]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-util: drop now unused _cleanup_endmntent_
authorMike Yuan <me@yhndnzj.com>
Sat, 6 Sep 2025 15:24:45 +0000 (17:24 +0200)
committerMike Yuan <me@yhndnzj.com>
Thu, 18 Sep 2025 18:25:15 +0000 (20:25 +0200)
src/shared/mount-util.h

index 3140762498f44cdfb3ae0ee91c958f3afbc11369..e45139dcf387472322617ac16ec059b61c309ab4 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <mntent.h>
-
 #include "forward.h"
 
 typedef struct SubMount {
@@ -37,9 +35,6 @@ static inline int mount_switch_root(const char *path, unsigned long mount_propag
         return mount_switch_root_full(path, mount_propagation_flag, false);
 }
 
-DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(FILE*, endmntent, NULL);
-#define _cleanup_endmntent_ _cleanup_(endmntentp)
-
 int mount_verbose_full(
                 int error_log_level,
                 const char *what,