From c6a5511fc92e7aa825ff5f59a4ce118cbb20a13c Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 27 Nov 2015 18:04:40 +0000 Subject: [PATCH] Clean up --- tests/index.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/index.c b/tests/index.c index 2aa6c421a..a61baab48 100644 --- a/tests/index.c +++ b/tests/index.c @@ -24,9 +24,9 @@ int main(int argc,char* argv[]) char** shortName=NULL; int i,j,k,l; size_t stepSize,levelSize,shortNameSize,numberSize; - long ostep,olevel,onumber; - char oshortName[200]; - size_t lenshortName=200; + long oStep,oLevel,oNumber; + char oShortName[200]; + size_t lenShortName=200; int ret=0,count=0; if (argc != 2) usage(argv[0]); @@ -111,15 +111,15 @@ int main(int argc,char* argv[]) while ((h=grib_handle_new_from_index(index,&ret))!=NULL){ count++; if (ret) {printf("error: %d\n",ret); exit(ret);} - lenshortName=200; - grib_get_string(h,"shortName",oshortName,&lenshortName); - grib_get_long(h,"level",&olevel); - grib_get_long(h,"number",&onumber); - grib_get_long(h,"step",&ostep); - printf("shortName=%s ",oshortName); - printf("level=%ld ",olevel); - printf("number=%ld ",onumber); - printf("step=%ld \n",ostep); + lenShortName=200; + grib_get_string(h,"shortName",oShortName,&lenShortName); + grib_get_long(h,"level",&oLevel); + grib_get_long(h,"number",&oNumber); + grib_get_long(h,"step",&oStep); + printf("shortName=%s ",oShortName); + printf("level=%ld ",oLevel); + printf("number=%ld ",oNumber); + printf("step=%ld \n",oStep); grib_handle_delete(h); } if (ret && ret!=GRIB_END_OF_INDEX ) {printf("error: %s\n",grib_get_error_message(ret)); exit(ret);}