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

306fa1
autofs-5.1.5 - remove unused function reverse_mnt_list()
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
This function is not used, remove it.
306fa1
306fa1
Signed-off-by: Ian Kent <raven@themaw.net>
306fa1
---
306fa1
 CHANGELOG        |    1 +
306fa1
 include/mounts.h |    1 -
306fa1
 lib/mounts.c     |   21 ---------------------
306fa1
 3 files changed, 1 insertion(+), 22 deletions(-)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -330,6 +330,7 @@
306fa1
 - fix macro expansion in selector values.
306fa1
 - fix reset flex scan buffer on init.
306fa1
 - remove unused function has_fstab_option().
306fa1
+- remove unused function reverse_mnt_list().
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
--- autofs-5.0.7.orig/include/mounts.h
306fa1
+++ autofs-5.0.7/include/mounts.h
306fa1
@@ -100,7 +100,6 @@ int ext_mount_add(struct list_head *, co
306fa1
 int ext_mount_remove(struct list_head *, const char *);
306fa1
 int ext_mount_inuse(const char *);
306fa1
 struct mnt_list *get_mnt_list(const char *table, const char *path, int include);
306fa1
-struct mnt_list *reverse_mnt_list(struct mnt_list *list);
306fa1
 void free_mnt_list(struct mnt_list *list);
306fa1
 int is_mounted(const char *table, const char *path, unsigned int type);
306fa1
 void tree_free_mnt_tree(struct mnt_list *tree);
306fa1
--- autofs-5.0.7.orig/lib/mounts.c
306fa1
+++ autofs-5.0.7/lib/mounts.c
306fa1
@@ -895,27 +895,6 @@ struct mnt_list *get_mnt_list(const char
306fa1
 	return list;
306fa1
 }
306fa1
 
306fa1
-/*
306fa1
- * Reverse a list of mounts
306fa1
- */
306fa1
-struct mnt_list *reverse_mnt_list(struct mnt_list *list)
306fa1
-{
306fa1
-	struct mnt_list *next, *last;
306fa1
-
306fa1
-	if (!list)
306fa1
-		return NULL;
306fa1
-
306fa1
-	next = list;
306fa1
-	last = NULL;
306fa1
-	while (next) {
306fa1
-		struct mnt_list *this = next;
306fa1
-		next = this->next;
306fa1
-		this->next = last;
306fa1
-		last = this;
306fa1
-	}
306fa1
-	return last;
306fa1
-}
306fa1
-
306fa1
 void free_mnt_list(struct mnt_list *list)
306fa1
 {
306fa1
 	struct mnt_list *next;