]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change param name to ZSTDCLI_NUMTHREADS_DEFAULT
authorsenhuang42 <senhuang96@fb.com>
Mon, 7 Sep 2020 22:11:42 +0000 (18:11 -0400)
committersenhuang42 <senhuang96@fb.com>
Mon, 7 Sep 2020 22:11:42 +0000 (18:11 -0400)
programs/zstdcli.c

index 6d8724a5dab17f0ea3adff96bae20a5a1fb68e98..abc37beff9843622fd1b25af7866424e4d9e0def 100644 (file)
 #  define ZSTDCLI_CLEVEL_DEFAULT 3
 #endif
 
-#ifndef ZSTD_NUMTHREADS_DEFAULT
-#  define ZSTD_NUMTHREADS_DEFAULT 1
-#endif
-
 #ifndef ZSTDCLI_CLEVEL_MAX
 #  define ZSTDCLI_CLEVEL_MAX 19   /* without using --ultra */
 #endif
 
-
+#ifndef ZSTDCLI_NUMTHREADS_DEFAULT
+#  define ZSTDCLI_NUMTHREADS_DEFAULT 1
+#endif
 
 /*-************************************
 *  Dependencies
@@ -628,7 +626,7 @@ static unsigned init_numThreads(void) {
             unsigned numThreads;
             if (readU32FromCharChecked(&ptr, &numThreads)) {
                 DISPLAYLEVEL(2, "Ignore environment variable setting %s=%s: numeric value too large \n", ENV_NUMTHREADS, env);
-                return ZSTD_NUMTHREADS_DEFAULT;
+                return ZSTDCLI_NUMTHREADS_DEFAULT;
             } else if (*ptr == 0) {
                 return numThreads;
             }
@@ -636,7 +634,7 @@ static unsigned init_numThreads(void) {
         DISPLAYLEVEL(2, "Ignore environment variable setting %s=%s: not a valid unsigned value \n", ENV_NUMTHREADS, env);
     }
 
-    return ZSTD_NUMTHREADS_DEFAULT;
+    return ZSTDCLI_NUMTHREADS_DEFAULT;
 }
 
 #define NEXT_FIELD(ptr) {         \
@@ -680,7 +678,6 @@ typedef enum { zom_compress, zom_decompress, zom_test, zom_bench, zom_train, zom
 # define MAXCLEVEL  ZSTD_maxCLevel()
 #endif
 
-
 int main(int const argCount, const char* argv[])
 {
     int argNb,