diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-01-23 20:46:34 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-01-23 20:46:34 (GMT) |
commit | 56e3f667d6e3e265ac044f3faf1b17137556e0f7 (patch) | |
tree | 70f04688f0596ca5be22dd4e9260f601ee77bbd8 /tools/misc | |
parent | b09695738a95d8f1fb823894d1880f28dc16669c (diff) | |
download | hdf5-56e3f667d6e3e265ac044f3faf1b17137556e0f7.zip hdf5-56e3f667d6e3e265ac044f3faf1b17137556e0f7.tar.gz hdf5-56e3f667d6e3e265ac044f3faf1b17137556e0f7.tar.bz2 |
[svn-r11886] Purpose:
Code cleanup
Description:
Check in some of the code cleanups from working on the external link
support. (This doesn't include any of the external link features)
Platforms tested:
FreeBSD 4.11 (sleipnir)
Mac OSX.4 (amazon)
Linux 2.4
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 */ |