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

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