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

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