]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
change int init_cLevel() to int init_cLevel(void)
authorYi Jin <yijin@fb.com>
Thu, 20 Dec 2018 01:38:28 +0000 (17:38 -0800)
committerYi Jin <yijin@fb.com>
Thu, 20 Dec 2018 01:38:28 +0000 (17:38 -0800)
programs/zstdcli.c

index d892c6aa73aba9d889b280e6c9be8e168944389c..4270bc1f9f9f023d2f7ea979c8382692ffe8622d 100644 (file)
@@ -469,7 +469,7 @@ static void printVersion(void)
 #define ENV_CLEVEL "ZSTD_CLEVEL"
 
 /* functions that pick up environment variables */
-int init_cLevel() {
+int init_cLevel(void) {
     const char* const env = getenv(ENV_CLEVEL);
     if (env) {
         const char *ptr = env;
@@ -541,6 +541,7 @@ int main(int argCount, const char* argv[])
     zstd_operation_mode operation = zom_compress;
     ZSTD_compressionParameters compressionParams;
     int cLevel = init_cLevel();
+    printf("init cLevel = %d\n", cLevel);
     int cLevelLast = -1000000000;
     unsigned recursive = 0;
     unsigned memLimit = 0;
@@ -1107,6 +1108,7 @@ int main(int argCount, const char* argv[])
         if (adaptMin > cLevel) cLevel = adaptMin;
         if (adaptMax < cLevel) cLevel = adaptMax;
 
+    printf("final cLevel = %d\n", cLevel);
         if ((filenameIdx==1) && outFileName)
           operationResult = FIO_compressFilename(outFileName, filenameTable[0], dictFileName, cLevel, compressionParams);
         else