diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-04 01:31:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-04 01:31:33 (GMT) |
commit | 2725a29b0e7158b8b0d8dfd7d3ab42126db6f235 (patch) | |
tree | 6e90df8ecc503ee396f666ac1ec8466913cde260 /src/H5.c | |
parent | 85c19fc0bac344a477066c8239c3a8f935abd75c (diff) | |
download | hdf5-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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |