diff --git a/cli/xxhsum.c b/cli/xxhsum.c index 65077478..bcabbab1 100644 --- a/cli/xxhsum.c +++ b/cli/xxhsum.c @@ -384,7 +384,7 @@ static void XSUM_printLine_GNU_LE(const char* filename, XSUM_printLine_GNU_internal(filename, canonicalHash, hashType, XSUM_display_LittleEndian); } -typedef enum { big_endian, little_endian} Display_endianess; +typedef enum { big_endian, little_endian} Display_endianness; typedef enum { display_gnu, display_bsd } Display_convention; @@ -397,14 +397,14 @@ static XSUM_displayLine_f XSUM_kDisplayLine_fTable[2][2] = { static int XSUM_hashFile(const char* fileName, const AlgoSelected hashType, - const Display_endianess displayEndianess, + const Display_endianness displayEndianness, const Display_convention convention) { size_t const blockSize = 64 KB; - XSUM_displayLine_f const f_displayLine = XSUM_kDisplayLine_fTable[convention][displayEndianess]; + XSUM_displayLine_f const f_displayLine = XSUM_kDisplayLine_fTable[convention][displayEndianness]; FILE* inFile; Multihash hashValue; - assert(displayEndianess==big_endian || displayEndianess==little_endian); + assert(displayEndianness==big_endian || displayEndianness==little_endian); assert(convention==display_gnu || convention==display_bsd); /* Check file existence */ @@ -479,17 +479,17 @@ static int XSUM_hashFile(const char* fileName, */ static int XSUM_hashFiles(const char* fnList[], int fnTotal, AlgoSelected hashType, - Display_endianess displayEndianess, + Display_endianness displayEndianness, Display_convention convention) { int fnNb; int result = 0; if (fnTotal==0) - return XSUM_hashFile(stdinName, hashType, displayEndianess, convention); + return XSUM_hashFile(stdinName, hashType, displayEndianness, convention); for (fnNb=0; fnNbblockBuf); free(XSUM_parseFileArg->lineBuf); @@ -1072,7 +1072,7 @@ static int XSUM_checkFile(const char* inFileName, static int XSUM_checkFiles(const char* fnList[], int fnTotal, - const Display_endianess displayEndianess, + const Display_endianness displayEndianness, XSUM_U32 strictMode, XSUM_U32 statusOnly, XSUM_U32 ignoreMissing, @@ -1085,11 +1085,11 @@ static int XSUM_checkFiles(const char* fnList[], int fnTotal, /* Special case for stdinName "-", * note: stdinName is not a string. It's special pointer. */ if (fnTotal==0) { - ok &= XSUM_checkFile(stdinName, displayEndianess, strictMode, statusOnly, ignoreMissing, warn, quiet, algoBitmask); + ok &= XSUM_checkFile(stdinName, displayEndianness, strictMode, statusOnly, ignoreMissing, warn, quiet, algoBitmask); } else { int fnNb; for (fnNb=0; fnNb