struct testEvent *evrecord = arg;
pthread_mutex_lock(&eventListMutex);
- rxevent_Put(evrecord->event);
+ rxevent_Put(&evrecord->event);
evrecord->event = NULL;
evrecord->fired = 1;
pthread_mutex_unlock(&eventListMutex);
pthread_mutex_init(&eventMutex, NULL);
pthread_cond_init(&eventCond, NULL);
- memset(events, sizeof(events), 0);
+ memset(events, 0, sizeof(events));
pthread_mutex_init(&eventListMutex, NULL);
/* Start up the event system */