]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Convert names to CamelCase
authorScott Baker <scott@perturb.org>
Sat, 5 Jun 2021 04:44:40 +0000 (21:44 -0700)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Jun 2021 16:53:07 +0000 (12:53 -0400)
programs/fileio.c
programs/util.c
programs/util.h

index b29295586dc4aa1c1ef3e23449c5921afd2444bc..b5beb145c5245a87066549b3eb1f7ce17c0e7056 100644 (file)
@@ -1598,16 +1598,16 @@ FIO_compressFilename_internal(FIO_ctx_t* const fCtx,
                 (unsigned long long)readsize, (unsigned long long) compressedfilesize,
                 dstFileName);
         } else {
-                       char input_size_str[8] = "";
-                       human_size((unsigned long long) readsize, input_size_str);
+                       char inputSizeStr[8] = "";
+                       humanSize((unsigned long long) readsize, inputSizeStr);
 
-                       char output_size_str[8] = "";
-                       human_size((unsigned long long) compressedfilesize, output_size_str);
+                       char outputSizeStr[8] = "";
+                       humanSize((unsigned long long) compressedfilesize, outputSizeStr);
 
             DISPLAYLEVEL(2,"%-20s :%6.2f%%   (%s => %s, %s) \n",
                 srcFileName,
                 (double)compressedfilesize / (double)readsize * 100,
-                input_size_str, output_size_str,
+                inputSizeStr, outputSizeStr,
                 dstFileName);
         }
     }
index d942d37324e62b5422f5749cd5893252441646de..5aec1118423bfde55d196c2240b51ede45116651 100644 (file)
@@ -121,7 +121,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg,
 *  Functions
 ***************************************/
 
-char* human_size(long size, char* str) {
+char* humanSize(long size, char* str) {
        if (size > 1125899906842624L) {
                snprintf(str, 7, "%.1fP", (float)size / 1125899906842624L);
        } else if (size > 1099511627776L) {
index 415b01f1b244340bc2300456c79fbef5dd91634d..aaaf2522ca398cdbb856f9e939123a8c7466aea3 100644 (file)
@@ -122,7 +122,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg, const
 #define STRDUP(s) strdup(s)
 #endif
 
-char* human_size(long size, char* str);
+char* humanSize(long size, char* str);
 
 /**
  * Calls platform's equivalent of stat() on filename and writes info to statbuf.