src/server/daemon/event_bsd.c

changeset 79
f48cea237ec3
parent 69
4a10bc0ee80d
child 109
8a0a7754f123
--- a/src/server/daemon/event_bsd.c	Tue Jun 25 22:18:59 2013 +0200
+++ b/src/server/daemon/event_bsd.c	Wed Jun 26 15:09:54 2013 +0200
@@ -69,10 +69,7 @@
         conf->handler = ev;
         conf->port = ev->ports[i];
         
-        ev_thr_conf_t *thrconf = malloc(sizeof(ev_thr_conf_t));
-        thrconf->handler = ev;
-        thrconf->port = ev->ports[i];
-        systhread_start(0, 0, (thrstartfunc)ev_handle_events, thrconf);
+        systhread_start(0, 0, (thrstartfunc)ev_handle_events, conf);
         /* TODO: error handling */
     }
     

mercurial