From c8af564d5b989fe5edd4a021789e5817dd1a2a8b Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Wed, 25 Sep 2024 09:51:00 +0200 Subject: [PATCH] More hyphens and blank spaces --- README.md | 8 ++++---- source_code/dump_smb.c | 2 +- source_code/proc.c | 16 ++++++++-------- source_code/quad_math.c | 22 +++++++++++----------- source_code/sock.c | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 812cd27..7a05ef6 100644 --- a/README.md +++ b/README.md @@ -636,13 +636,13 @@ Robert Kidd provided detailed information on how to make the **smbfs** client/se The *Sharity-Light* source code was adapted, wrapped into an AmigaOS layer, subsequently debugged and enhanced by Olaf Barthel. If you wish to contact me, you can reach me at: -Olaf Barthel -Gneisenaustr. 43 -D-31275 Lehrte + Olaf Barthel + Gneisenaustr. 43 + D-31275 Lehrte Or via e-mail: -obarthel [at] gmx.net + obarthel [at] gmx.net If you want to submit a bug report or an enhancement request, please enclose sufficient information to allow me to make sense of the problem. That includes debugging logs produced using the `DEBUG` and `DEBUGFILE` options. diff --git a/source_code/dump_smb.c b/source_code/dump_smb.c index eecc99c..4017596 100644 --- a/source_code/dump_smb.c +++ b/source_code/dump_smb.c @@ -2324,7 +2324,7 @@ print_smb_contents(const struct smb_header * header,int command,enum smb_packet_ FPrintf(dump_smb_file,"system time = 0x%08lx%08lx\n",system_time[0],system_time[1]); FPrintf(dump_smb_file," %s\n",convert_filetime_to_string(system_time)); - FPrintf(dump_smb_file,"server time zone = %ld\n",(signed short)next_data_word(parameters,&offset)); /* ZZZ this is a signed 16 bit integer */ + FPrintf(dump_smb_file,"server time zone = %ld\n",(signed short)next_data_word(parameters,&offset)); /* ZZZ this is a signed 16-bit integer */ challenge_length = next_data_byte(parameters,&offset); FPrintf(dump_smb_file,"challenge length = %ld\n",challenge_length); diff --git a/source_code/proc.c b/source_code/proc.c index ed9ac55..cd25117 100644 --- a/source_code/proc.c +++ b/source_code/proc.c @@ -269,7 +269,7 @@ static void convert_time_t_to_long_date(time_t t, QUAD * long_date); /*****************************************************************************/ /* Copy a string in ISO-Latin-1 form (8 bits per character) into a - * buffer, converting it into a little-endian 16 bit Unicode version + * buffer, converting it into a little-endian 16-bit Unicode version * of the string. This works because the ISO-Latin-1 character sits * within the ASCII/BMP Latin-1 Unicode range. * @@ -318,12 +318,12 @@ copy_latin1_to_utf16le(byte * to,int to_size, const byte * from,int len) /*****************************************************************************/ -/* Copy a string in little-endian 16 bit Unicode into a buffer, converting +/* Copy a string in little-endian 16-bit Unicode into a buffer, converting * it into a ISO-Latin-1 (8 bits per character) version of the string, if * possible. Code points beyond the ASCII/BMP Latin-1 character set are * replaced by the control character 0x80. * - * Note that the length is given as the number of 16 bit Unicode + * Note that the length is given as the number of 16-bit Unicode * characters, not the number of bytes required to store the string. * * This function creates a NUL-terminated ISO-Latin-1 string and @@ -403,7 +403,7 @@ static size_t strnlen(const char * s,size_t max_size) /*****************************************************************************/ -/* Works just like strnlen(), but operates on 16 bit characters. */ +/* Works just like strnlen(), but operates on 16-bit characters. */ static size_t strnlen_utf16(const char * s,size_t max_size) { size_t result = 0; @@ -483,7 +483,7 @@ smb_encode_smb_length (byte * p, int len) /* 0x00 = NetBIOS session message */ p[0] = 0; - /* Length is a 17 bit integer, the most significant + /* Length is a 17-bit integer, the most significant * bit of which goes into bit #0. The other 7 bits * are reserved. */ @@ -2736,7 +2736,7 @@ convert_long_date_to_time_t(const char * p) ULONG underflow; time_t result; - /* Extract the 64 bit time value. */ + /* Extract the 64-bit time value. */ long_date.Low = DVAL(p,0); long_date.High = DVAL(p,4); @@ -3694,7 +3694,7 @@ smb_query_path_information( /* Let's show what the name of the object in * question is supposed to look like. The - * text is provided as 16 bit characters, + * text is provided as 16-bit characters, * even if Unicode mode is not enabled. */ copy_utf16le_to_latin1(name, sizeof(name), file_name, file_name_length / sizeof(word)); @@ -4245,7 +4245,7 @@ smb_proc_reconnect (struct smb_server *server, int * error_ptr) * transmit may vary. * * What follows the 4 byte NetBIOS session header must not be - * larger than that an unsigned 17 bit integer can hold. It should + * larger than that an unsigned 17-bit integer can hold. It should * not be much larger than 65535 bytes, though, since the transmission * buffer only has some extra 1024 bytes of room at the end. */ diff --git a/source_code/quad_math.c b/source_code/quad_math.c index 8c945ff..666d477 100644 --- a/source_code/quad_math.c +++ b/source_code/quad_math.c @@ -67,7 +67,7 @@ static ULONG mulhu (ULONG u, ULONG v) return u1 * v1 + w2 + (w1 >> 16); } -/* Multiply two 32-bit numbers, yielding a 64 bit result value. */ +/* Multiply two 32-bit numbers, yielding a 64-bit result value. */ void multiply_32_by_32_to_64(ULONG ab,ULONG cd,QUAD * product) { @@ -75,9 +75,9 @@ multiply_32_by_32_to_64(ULONG ab,ULONG cd,QUAD * product) product->Low = ab * cd; } -/* Multiply an unsigned 64 bit quantity by a 32 bit quantity, yielding a 64 - * bit product. Returns the most significant component of the product, which - * is effectively the 32 bit overflow from the 96 bit product. +/* Multiply an unsigned 64-bit quantity by a 32-bit quantity, yielding a + * 64-bit product. Returns the most significant component of the product, + * which is effectively the 32-bit overflow from the 96-bit product. */ ULONG multiply_64_by_32_to_64(const QUAD * const abcd,ULONG ef,QUAD * abcdef) @@ -111,7 +111,7 @@ multiply_64_by_32_to_64(const QUAD * const abcd,ULONG ef,QUAD * abcdef) /****************************************************************************/ -/* Divide a 64-bit integer by a 32-bit integer, filling in a 64 bit quotient +/* Divide a 64-bit integer by a 32-bit integer, filling in a 64-bit quotient * and returning a 32-bit remainder. */ ULONG @@ -134,14 +134,14 @@ divide_64_by_32(const QUAD * const dividend,ULONG divisor,QUAD * quotient) quotient->Low = (quotient->Low << 1); /* Shift the dividend left by one bit. We start - * with the most significant 32 bit portion. + * with the most significant 32-bit portion. */ dividend_ab = (dividend_ab << 1); if((dividend_cdef.High & 0x80000000UL) != 0) dividend_ab |= 1; - /* Now for the middle 32 bit portion. */ + /* Now for the middle 32-bit portion. */ dividend_cdef.High = (dividend_cdef.High << 1); if((dividend_cdef.Low & 0x80000000UL) != 0) @@ -169,8 +169,8 @@ divide_64_by_32(const QUAD * const dividend,ULONG divisor,QUAD * quotient) /****************************************************************************/ -/* Add an unsigned 32 bit quantity to a 64 bit quantity, yielding a - * 64 bit sum. +/* Add an unsigned 32-bit quantity to a 64-bit quantity, yielding a + * 64-bit sum. */ ULONG add_64_plus_32_to_64(const QUAD * const a,ULONG b,QUAD * ab) @@ -185,8 +185,8 @@ add_64_plus_32_to_64(const QUAD * const a,ULONG b,QUAD * ab) /****************************************************************************/ -/* Add an unsigned 64 bit quantity to a 64 bit quantity, yielding a - * 64 bit sum. +/* Add an unsigned 64-bit quantity to a 64-bit quantity, yielding a + * 64-bit sum. */ ULONG add_64_plus_64_to_64(const QUAD * const a,const QUAD * const b,QUAD * ab) diff --git a/source_code/sock.c b/source_code/sock.c index 1cb770b..5e98c47 100644 --- a/source_code/sock.c +++ b/source_code/sock.c @@ -69,7 +69,7 @@ smb_encode_smb_length (byte * p, int len) /* 0x00 = NetBIOS session message */ p[0] = 0; - /* Length is a 17 bit integer, the most significant + /* Length is a 17-bit integer, the most significant * bit of which goes into bit #0. The other 7 bits * are reserved. */