diff --git a/CHANGELOG b/CHANGELOG index 37bbb90..acc4a03 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -56,6 +56,7 @@ xx/xx/2018 autofs-5.1.5 - also use strictexpire for offsets. - change expire type naming to better reflect usage. - remove unused function has_fstab_option(). +- remove unused function reverse_mnt_list(). 19/12/2017 autofs-5.1.4 - fix spec file url. diff --git a/include/mounts.h b/include/mounts.h index 4914cde..ec85ae9 100644 --- a/include/mounts.h +++ b/include/mounts.h @@ -100,7 +100,6 @@ int ext_mount_add(struct list_head *, const char *, unsigned int); int ext_mount_remove(struct list_head *, const char *); int ext_mount_inuse(const char *); struct mnt_list *get_mnt_list(const char *table, const char *path, int include); -struct mnt_list *reverse_mnt_list(struct mnt_list *list); void free_mnt_list(struct mnt_list *list); int is_mounted(const char *table, const char *path, unsigned int type); void tree_free_mnt_tree(struct mnt_list *tree); diff --git a/lib/mounts.c b/lib/mounts.c index e7b6758..fb7504d 100644 --- a/lib/mounts.c +++ b/lib/mounts.c @@ -894,27 +894,6 @@ struct mnt_list *get_mnt_list(const char *table, const char *path, int include) return list; } -/* - * Reverse a list of mounts - */ -struct mnt_list *reverse_mnt_list(struct mnt_list *list) -{ - struct mnt_list *next, *last; - - if (!list) - return NULL; - - next = list; - last = NULL; - while (next) { - struct mnt_list *this = next; - next = this->next; - this->next = last; - last = this; - } - return last; -} - void free_mnt_list(struct mnt_list *list) { struct mnt_list *next;