Blame SOURCES/autofs-5.1.5-remove-unused-function-reverse_mnt_list.patch

8fa62f
autofs-5.1.5 - remove unused function reverse_mnt_list()
8fa62f
8fa62f
From: Ian Kent <raven@themaw.net>
8fa62f
8fa62f
This function is not used, remove it.
8fa62f
8fa62f
Signed-off-by: Ian Kent <raven@themaw.net>
8fa62f
---
8fa62f
 CHANGELOG        |    1 +
8fa62f
 include/mounts.h |    1 -
8fa62f
 lib/mounts.c     |   21 ---------------------
8fa62f
 3 files changed, 1 insertion(+), 22 deletions(-)
8fa62f
8fa62f
--- autofs-5.1.4.orig/CHANGELOG
8fa62f
+++ autofs-5.1.4/CHANGELOG
8fa62f
@@ -56,6 +56,7 @@ xx/xx/2018 autofs-5.1.5
8fa62f
 - also use strictexpire for offsets.
8fa62f
 - change expire type naming to better reflect usage.
8fa62f
 - remove unused function has_fstab_option().
8fa62f
+- remove unused function reverse_mnt_list().
8fa62f
 
8fa62f
 19/12/2017 autofs-5.1.4
8fa62f
 - fix spec file url.
8fa62f
--- autofs-5.1.4.orig/include/mounts.h
8fa62f
+++ autofs-5.1.4/include/mounts.h
8fa62f
@@ -100,7 +100,6 @@ int ext_mount_add(struct list_head *, co
8fa62f
 int ext_mount_remove(struct list_head *, const char *);
8fa62f
 int ext_mount_inuse(const char *);
8fa62f
 struct mnt_list *get_mnt_list(const char *table, const char *path, int include);
8fa62f
-struct mnt_list *reverse_mnt_list(struct mnt_list *list);
8fa62f
 void free_mnt_list(struct mnt_list *list);
8fa62f
 int is_mounted(const char *table, const char *path, unsigned int type);
8fa62f
 void tree_free_mnt_tree(struct mnt_list *tree);
8fa62f
--- autofs-5.1.4.orig/lib/mounts.c
8fa62f
+++ autofs-5.1.4/lib/mounts.c
8fa62f
@@ -894,27 +894,6 @@ struct mnt_list *get_mnt_list(const char
8fa62f
 	return list;
8fa62f
 }
8fa62f
 
8fa62f
-/*
8fa62f
- * Reverse a list of mounts
8fa62f
- */
8fa62f
-struct mnt_list *reverse_mnt_list(struct mnt_list *list)
8fa62f
-{
8fa62f
-	struct mnt_list *next, *last;
8fa62f
-
8fa62f
-	if (!list)
8fa62f
-		return NULL;
8fa62f
-
8fa62f
-	next = list;
8fa62f
-	last = NULL;
8fa62f
-	while (next) {
8fa62f
-		struct mnt_list *this = next;
8fa62f
-		next = this->next;
8fa62f
-		this->next = last;
8fa62f
-		last = this;
8fa62f
-	}
8fa62f
-	return last;
8fa62f
-}
8fa62f
-
8fa62f
 void free_mnt_list(struct mnt_list *list)
8fa62f
 {
8fa62f
 	struct mnt_list *next;