cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit d96c4e1ea2b24c14eb844f94cfb87af51b372c4f
parent 090e2932ce7d7c63d2a382213657903fcffb1b9b
Author: Michael Forney <mforney@mforney.org>
Date:   Thu, 30 Jan 2020 12:45:35 -0800

util: Remove unused listinsertlist

Diffstat:
Mutil.c | 11-----------
Mutil.h | 1-
2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/util.c b/util.c @@ -126,17 +126,6 @@ listinsert(struct list *list, struct list *new) } void -listinsertlist(struct list *list, struct list *new) -{ - if (new->next == new) - return; - new->next->prev = list; - new->prev->next = list; - list->next->prev = new->prev; - list->next = new->next; -} - -void listremove(struct list *list) { list->next->prev = list->prev; diff --git a/util.h b/util.h @@ -36,7 +36,6 @@ void *xmalloc(size_t); char *progname(char *, char *); void listinsert(struct list *, struct list *); -void listinsertlist(struct list *, struct list *); void listremove(struct list *); #define listelement(list, type, member) (type *)((char *)list - offsetof(type, member))