mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-09 16:50:26 +07:00
Refactor, replace BSD queue.h LIST_ macros with homegrown version
This patch replaces the BSD doubly linked list implementation with a simplified homegrown version. This not only reduces the dependency on an external "library", but also greatly simplifies licensing and gives us a clean name space that does not intrude on users who want to use their own version of queue.h in their application that also includes the libuEv header file. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -121,9 +121,6 @@ int uev_timer_set(uev_t *w, int timeout, int period)
|
||||
if (!timeout && !period)
|
||||
return 0;
|
||||
|
||||
/* Remove from internal list */
|
||||
LIST_REMOVE(w, link);
|
||||
|
||||
if (uev_timer_init(w->ctx, w, (uev_cb_t *)w->cb, w->arg, timeout, period))
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user