summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-01-04 01:31:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-01-04 01:31:33 (GMT)
commit2725a29b0e7158b8b0d8dfd7d3ab42126db6f235 (patch)
tree6e90df8ecc503ee396f666ac1ec8466913cde260 /src/H5.c
parent85c19fc0bac344a477066c8239c3a8f935abd75c (diff)
downloadhdf5-2725a29b0e7158b8b0d8dfd7d3ab42126db6f235.zip
hdf5-2725a29b0e7158b8b0d8dfd7d3ab42126db6f235.tar.gz
hdf5-2725a29b0e7158b8b0d8dfd7d3ab42126db6f235.tar.bz2
[svn-r3236] Purpose:
Clean up code. Description: Cleaned up various compiler warnings. Platforms tested: FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5.c b/src/H5.c
index 9bf0fb2..c92415f 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -1295,7 +1295,7 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
va_list ap;
char buf[64], *rest;
const char *argname;
- intn argno=0, ptr, n, asize_idx;
+ intn argno=0, ptr, asize_idx;
hssize_t asize[16];
hssize_t i;
void *vp = NULL;
@@ -1341,7 +1341,7 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
*/
argname = va_arg (ap, char*);
if (argname) {
- n = MAX (0, (int)HDstrlen(argname)-3);
+ unsigned n = MAX (0, (int)HDstrlen(argname)-3);
if (!HDstrcmp (argname+n, "_id")) {
HDstrncpy (buf, argname, MIN ((int)sizeof(buf)-1, n));
buf[MIN((int)sizeof(buf)-1, n)] = '\0';
@@ -1517,8 +1517,8 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
fprintf(out, "NULL");
}
} else {
- H5E_major_t n = va_arg(ap, H5E_major_t);
- fprintf(out, "%d", (int)n);
+ H5E_major_t emaj = va_arg(ap, H5E_major_t);
+ fprintf(out, "%d", (int)emaj);
}
break;
@@ -1530,8 +1530,8 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
fprintf(out, "NULL");
}
} else {
- H5E_minor_t n = va_arg(ap, H5E_minor_t);
- fprintf(out, "%d", (int)n);
+ H5E_minor_t emin = va_arg(ap, H5E_minor_t);
+ fprintf(out, "%d", (int)emin);
}
break;