Fixed compiler warnings

This commit is contained in:
Shahram Najm 2013-05-08 11:42:55 +01:00
parent 6acab6fcfe
commit 32900991ac
1 changed files with 1 additions and 3 deletions

View File

@ -8,9 +8,7 @@ int main(int argc,const char** argv)
grib_handle *h = NULL;
size_t size = 0;
double* vdouble = NULL;
long* vlong = NULL;
FILE* f = NULL;
const char* p = NULL;
const void* buffer = NULL;
if(argc != 2) {
@ -226,7 +224,7 @@ int main(int argc,const char** argv)
size = 496;
vdouble = (double*)calloc(size,sizeof(double));
if(!vdouble) {
fprintf(stderr,"failed to allocate %d bytes\n",size*sizeof(double));
fprintf(stderr,"failed to allocate %lu bytes\n",size*sizeof(double));
exit(1);
}