ECC-604: Fix error in test

This commit is contained in:
Shahram Najm 2018-04-25 18:45:27 +01:00
parent 962160a8ec
commit f3ecdf0ee5
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
#include "grib_api.h" #include "grib_api.h"
#define NUM_THREADS 8 #define NUM_THREADS 8
#define FILES_PER_ITERATION 400 #define FILES_PER_ITERATION 150
#define TEMPLATE "../../share/eccodes/samples/gg_sfc_grib2.tmpl" #define TEMPLATE "../../share/eccodes/samples/gg_sfc_grib2.tmpl"
@ -79,7 +79,7 @@ static int encode_file(char *template_file, char *output_file)
return 0; return 0;
} }
void* do_stuff(void *data); void do_stuff(void *data);
/* Structure for passing data to threads */ /* Structure for passing data to threads */
struct v struct v
@ -138,7 +138,7 @@ void *runner(void *ptr)
pthread_exit(0); pthread_exit(0);
} }
void *do_stuff(void *ptr) void do_stuff(void *ptr)
{ {
/* Casting paramater to struct v pointer */ /* Casting paramater to struct v pointer */
struct v *data = ptr; struct v *data = ptr;