diff options
Diffstat (limited to 'lib/libc/stdlib/remque.c')
-rw-r--r-- | lib/libc/stdlib/remque.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/libc/stdlib/remque.c b/lib/libc/stdlib/remque.c deleted file mode 100644 index 0a2f28f..0000000 --- a/lib/libc/stdlib/remque.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Initial implementation: - * Copyright (c) 2002 Robert Drehmel - * All rights reserved. - * - * As long as the above copyright statement and this notice remain - * unchanged, you can do what ever you want with this file. - */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#define _SEARCH_PRIVATE -#include <search.h> -#include <stdlib.h> /* for NULL */ - -void -remque(void *element) -{ - struct que_elem *prev, *next, *elem; - - elem = (struct que_elem *)element; - - prev = elem->prev; - next = elem->next; - - if (prev != NULL) - prev->next = next; - if (next != NULL) - next->prev = prev; -} |