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

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