ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/event.c
(Generate patch)

Comparing libev/event.c (file contents):
Revision 1.18 by root, Tue Nov 6 13:17:55 2007 UTC vs.
Revision 1.19 by root, Tue Nov 6 16:51:20 2007 UTC

330}; 330};
331 331
332static void 332static void
333x_once_cb (int revents, void *arg) 333x_once_cb (int revents, void *arg)
334{ 334{
335 struct x_once *once = arg; 335 struct x_once *once = (struct x_once *)arg;
336 336
337 once->cb (once->fd, revents, once->arg); 337 once->cb (once->fd, revents, once->arg);
338 free (once); 338 free (once);
339} 339}
340 340
341int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv) 341int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv)
342{ 342{
343 struct x_once *once = malloc (sizeof (struct x_once)); 343 struct x_once *once = (struct x_once *)malloc (sizeof (struct x_once));
344 dLOOPbase; 344 dLOOPbase;
345 345
346 if (!once) 346 if (!once)
347 return -1; 347 return -1;
348 348

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines