(list).next_offset = silc_offsetof(type, nextfield); \
(list).prev_set = 0; \
(list).prev_offset = 0; \
+ (list).end_set = 0; \
(list).head = (list).tail = (list).current = NULL; \
} while(0)
(list).next_offset = silc_offsetof(type, nextfield); \
(list).prev_offset = silc_offsetof(type, prevfield); \
(list).prev_set = 1; \
+ (list).end_set = 0; \
(list).head = (list).tail = (list).current = NULL; \
} while(0)
SILC_LOG_DEBUG(("Scheduling fd %lu, mask %x", task->fd, event_mask));
- event.events = 0;
+ memset(&event, 0, sizeof(event));
if (event_mask & SILC_TASK_READ)
event.events |= (EPOLLIN | EPOLLPRI);
if (event_mask & SILC_TASK_WRITE)