" tmqh_out=%p",
s, s ? s->PktAcqLoop : NULL, tv->tmqh_in, tv->tmqh_out);
TmThreadsSetFlag(tv, THV_CLOSED | THV_RUNNING_DONE);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
tv->flow_queue = FlowQueueNew();
if (tv->flow_queue == NULL) {
TmThreadsSetFlag(tv, THV_CLOSED | THV_RUNNING_DONE);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
/* setup a queue */
tv->flow_queue = FlowQueueNew();
if (tv->flow_queue == NULL) {
TmThreadsSetFlag(tv, THV_CLOSED | THV_RUNNING_DONE);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
}
error:
tv->stream_pq = NULL;
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
/* check if we are setup properly */
if (s == NULL || tv->tmqh_in == NULL || tv->tmqh_out == NULL) {
TmThreadsSetFlag(tv, THV_CLOSED | THV_RUNNING_DONE);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
tv->flow_queue = FlowQueueNew();
if (tv->flow_queue == NULL) {
TmThreadsSetFlag(tv, THV_CLOSED | THV_RUNNING_DONE);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
/* setup a queue */
tv->flow_queue = FlowQueueNew();
if (tv->flow_queue == NULL) {
TmThreadsSetFlag(tv, THV_CLOSED | THV_RUNNING_DONE);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
}
error:
tv->stream_pq = NULL;
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
r = s->SlotThreadInit(tv, s->slot_initdata, &slot_data);
if (r != TM_ECODE_OK) {
TmThreadsSetFlag(tv, THV_CLOSED | THV_RUNNING_DONE);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
(void)SC_ATOMIC_SET(s->slot_data, slot_data);
r = s->SlotThreadDeinit(tv, SC_ATOMIC_GET(s->slot_data));
if (r != TM_ECODE_OK) {
TmThreadsSetFlag(tv, THV_CLOSED);
- pthread_exit((void *) -1);
+ pthread_exit(NULL);
return NULL;
}
}