if (read_threads != NULL)
return;
- read_threads = (pthread_t *)calloc(num, sizeof(pthread_t));
+ read_threads = calloc(num, sizeof(pthread_t));
if (read_threads == NULL) {
ERROR("plugin: start_read_threads: calloc failed.");
return;
if (write_threads != NULL)
return;
- write_threads = (pthread_t *)calloc(num, sizeof(pthread_t));
+ write_threads = calloc(num, sizeof(pthread_t));
if (write_threads == NULL) {
ERROR("plugin: start_write_threads: calloc failed.");
return;