Пример #1
0
int fdevent_unregister(fdevents *ev,int fd){  
    if(!ev) return 0;  
  
    fdnode *fdn=ev->fdarray[fd];  
    fdnode_free(fdn);  
    ev->fdarray[fd]=NULL;  
  
    return 0;  
}  
Пример #2
0
int fdevent_unregister(fdevents *ev, int fd) {
	fdnode *fdn;

	if (!ev) return 0;
	fdn = ev->fdarray[fd];

	assert(fdn->events == 0);

	fdnode_free(fdn);

	ev->fdarray[fd] = NULL;

	return 0;
}