diff options
Diffstat (limited to 'perform')
-rw-r--r-- | perform/chunk.c | 2 | ||||
-rw-r--r-- | perform/zip_perf.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/perform/chunk.c b/perform/chunk.c index f74397b..717858b 100644 --- a/perform/chunk.c +++ b/perform/chunk.c @@ -33,7 +33,7 @@ #endif -#ifndef H5_HAVE_ATTRIBUTE +#if !defined(H5_HAVE_ATTRIBUTE) || defined __cplusplus # undef __attribute__ # define __attribute__(X) /*void*/ # define UNUSED /*void*/ 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) |