#754 sufixlist->SUFFIX_LIST

This commit is contained in:
Sergey Ponomarev 2019-09-14 21:15:24 +03:00
parent b804dd3e5b
commit 8cc815a941

View File

@ -2169,7 +2169,7 @@ FIO_determineDstName(const char* srcFileName)
static size_t dfnbCapacity = 0; static size_t dfnbCapacity = 0;
static char* dstFileNameBuffer = NULL; /* using static allocation : this function cannot be multi-threaded */ static char* dstFileNameBuffer = NULL; /* using static allocation : this function cannot be multi-threaded */
const char* suffixlist = ZSTD_EXTENSION const char* SUFFIX_LIST = ZSTD_EXTENSION
#ifdef ZSTD_GZDECOMPRESS #ifdef ZSTD_GZDECOMPRESS
"/" GZ_EXTENSION "/" GZ_EXTENSION
#endif #endif
@ -2186,7 +2186,7 @@ FIO_determineDstName(const char* srcFileName)
const char* const suffixPtr = strrchr(srcFileName, '.'); const char* const suffixPtr = strrchr(srcFileName, '.');
if (suffixPtr == NULL) { if (suffixPtr == NULL) {
DISPLAYLEVEL(1, "zstd: %s: missing suffix (%s expected) -- ignored \n", DISPLAYLEVEL(1, "zstd: %s: missing suffix (%s expected) -- ignored \n",
srcFileName, suffixlist); srcFileName, SUFFIX_LIST);
return NULL; return NULL;
} }
suffixSize = strlen(suffixPtr); suffixSize = strlen(suffixPtr);
@ -2206,7 +2206,7 @@ FIO_determineDstName(const char* srcFileName)
#endif #endif
) ) { ) ) {
DISPLAYLEVEL(1, "zstd: %s: unknown suffix (%s expected) -- ignored \n", DISPLAYLEVEL(1, "zstd: %s: unknown suffix (%s expected) -- ignored \n",
srcFileName, suffixlist); srcFileName, SUFFIX_LIST);
return NULL; return NULL;
} }