summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-13 13:15:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-13 13:15:49 (GMT)
commit8e391ad35a1ede1ac046f05710297aa40986642b (patch)
tree247faeeacb9925beb90b6b8c10f0d875f93ed155 /perform/zip_perf.c
parentc3a1173026916e25a5a44f1d4255b889ccbaeb2b (diff)
downloadhdf5-8e391ad35a1ede1ac046f05710297aa40986642b.zip
hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.tar.gz
hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.tar.bz2
[svn-r6269] Purpose:
Code cleanup Description: Various code cleanups to allow the development branch to be compiled with a C++ compiler (i.e. CC=g++ ) Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)} FreeBSD 4.7 (sleipnir) C++
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r--perform/zip_perf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 9514dc0..d5ea5cb 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -324,7 +324,7 @@ uncompress_buffer(Bytef *dest, uLongf *destLen, const Bytef *source,
static void
get_unique_name(void)
{
- const char *prefix = "/tmp", *template = "/zip_perf_XXXXXX";
+ const char *prefix = "/tmp", *templte = "/zip_perf_XXXXXX";
const char *env = getenv("HDF5_PREFIX");
if (env)
@@ -333,13 +333,13 @@ get_unique_name(void)
if (option_prefix)
prefix = option_prefix;
- filename = calloc(1, strlen(prefix) + strlen(template) + 1);
+ filename = calloc(1, strlen(prefix) + strlen(templte) + 1);
if (!filename)
error("out of memory");
strcpy(filename, prefix);
- strcat(filename, template);
+ strcat(filename, templte);
output = mkstemp(filename);
if (output == -1)