This commit is contained in:
vvaltman 2014-09-08 01:50:19 +04:00
parent f912dbadba
commit f7318666b2

View File

@ -1,7 +1,7 @@
#ifndef __EVENT_OLD_H__ #ifndef __EVENT_OLD_H__
#define __EVENT_OLD_H__ #define __EVENT_OLD_H__
typedef evutil_socket_t int typedef int evutil_socket_t;
static inline struct event *event_new (struct event_base *base, int fd, int what, void(*callback)(int, short, void *), void *arg) { static inline struct event *event_new (struct event_base *base, int fd, int what, void(*callback)(int, short, void *), void *arg) {
struct event *ev = malloc (sizeof (*ec)); struct event *ev = malloc (sizeof (*ec));