mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
559a218c9b
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
28 lines
534 B
C
28 lines
534 B
C
/*
|
|
* 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.
|
|
*/
|
|
#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;
|
|
}
|