Code cleanup

This commit is contained in:
Mark Riddoch
2015-02-16 09:21:11 +00:00
parent 7a9419e4ba
commit d7da8c5297
2 changed files with 1 additions and 3 deletions

View File

@ -89,7 +89,7 @@ int main(int argc, char* argv[])
goto return_err; goto return_err;
} }
thr = (thread_t*)calloc(1, nthr*sizeof(thread_t*)); thr = (thread_t **)calloc(1, nthr*sizeof(thread_t*));
if (thr == NULL) if (thr == NULL)
{ {
@ -585,7 +585,6 @@ static void* thr_run_morelog(
void* data) void* data)
{ {
thread_t* td = (thread_t *)data; thread_t* td = (thread_t *)data;
char* logstr;
int err; int err;
int i; int i;
int nmsg; int nmsg;

View File

@ -15,7 +15,6 @@
* *
* Copyright MariaDB Corporation Ab 2013-2014 * Copyright MariaDB Corporation Ab 2013-2014
*/ */
#include <my_config.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>