diff options
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/h5repart_gentest.c | 2 | ||||
-rw-r--r-- | tools/misc/h5stat.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/misc/h5repart_gentest.c b/tools/misc/h5repart_gentest.c index df56e72..6457595 100644 --- a/tools/misc/h5repart_gentest.c +++ b/tools/misc/h5repart_gentest.c @@ -29,7 +29,7 @@ int main(void) { - hid_t file=(-1), fapl, fapl2=(-1), space=(-1), dset=(-1); + hid_t file=(-1), fapl, space=(-1), dset=(-1); char dname[]="dataset"; int i, j; int buf[FAMILY_NUMBER][FAMILY_SIZE]; diff --git a/tools/misc/h5stat.c b/tools/misc/h5stat.c index 4965d23..20e76be 100644 --- a/tools/misc/h5stat.c +++ b/tools/misc/h5stat.c @@ -94,11 +94,11 @@ static struct { static unsigned ceil_log10(unsigned long x) { - unsigned long pow = 1; + unsigned long pow10 = 1; unsigned ret = 0; - while(x >= pow) { - pow *= 10; + while(x >= pow10) { + pow10 *= 10; ret++; } /* end while */ |