forked from enlightenment/efl
parent
775ecc6a05
commit
140a357fe6
|
@ -18,7 +18,6 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#define FIX_HZ 1
|
#define FIX_HZ 1
|
||||||
|
|
||||||
|
@ -151,10 +150,6 @@ ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, int (*func) (voi
|
||||||
(flags == 0) ||
|
(flags == 0) ||
|
||||||
(!func)) return NULL;
|
(!func)) return NULL;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH(fd_handlers, fdh)
|
|
||||||
if (fdh->fd == fd && fdh->flags == flags)
|
|
||||||
abort();
|
|
||||||
|
|
||||||
fdh = calloc(1, sizeof(Ecore_Fd_Handler));
|
fdh = calloc(1, sizeof(Ecore_Fd_Handler));
|
||||||
if (!fdh) return NULL;
|
if (!fdh) return NULL;
|
||||||
ECORE_MAGIC_SET(fdh, ECORE_MAGIC_FD_HANDLER);
|
ECORE_MAGIC_SET(fdh, ECORE_MAGIC_FD_HANDLER);
|
||||||
|
|
Loading…
Reference in New Issue