From 26895da7e6cbcb8bc6bd8b35a912e1edd4f7ea66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 4 Apr 2013 19:29:36 +0000 Subject: [PATCH] [REACTOS] Fix spelling of 'length' in various places. Patch by andygui Concerning kdio.c, we can see that the original author didn't see his misspelling since he used two different variables named: KdpScreenLineLength and KdpScreenLineLenght ! ; the latter being renamed here KdpScreenLineLengthDefault to make the difference. CORE-7043 #comment Part for ReactOS committed in r58672, thanks! svn path=/trunk/; revision=58672 --- reactos/base/applications/calc/lang/el-GR.rc | 2 +- reactos/base/applications/calc/lang/ko-KR.rc | 2 +- reactos/base/applications/calc/lang/th-TH.rc | 2 +- .../base/applications/sndrec32/audio_resampler_acm.cpp | 4 ++-- reactos/base/applications/sndrec32/audio_wavein.hpp | 2 +- reactos/base/applications/sndrec32/lang/de-DE.rc | 2 +- reactos/base/applications/sndrec32/lang/en-US.rc | 2 +- reactos/base/applications/sndrec32/lang/es-ES.rc | 2 +- reactos/base/services/eventlog/file.c | 2 +- reactos/boot/freeldr/freeldr/include/fs/ext2.h | 2 +- reactos/dll/win32/kernel32/client/path.c | 2 +- reactos/drivers/filesystems/fastfat/fastio.c | 2 +- reactos/drivers/filesystems/fastfat_new/fastio.c | 2 +- reactos/include/ndk/iofuncs.h | 2 +- reactos/lib/drivers/lwip/src/core/snmp/msg_out.c | 8 ++++---- reactos/lib/drivers/lwip/src/core/tcp_in.c | 2 +- reactos/ntoskrnl/io/iomgr/util.c | 2 +- reactos/ntoskrnl/io/pnpmgr/pnputil.c | 2 +- reactos/ntoskrnl/kd/kdio.c | 6 +++--- 19 files changed, 25 insertions(+), 25 deletions(-) diff --git a/reactos/base/applications/calc/lang/el-GR.rc b/reactos/base/applications/calc/lang/el-GR.rc index 6370531a11b..77cbea1a793 100644 --- a/reactos/base/applications/calc/lang/el-GR.rc +++ b/reactos/base/applications/calc/lang/el-GR.rc @@ -444,7 +444,7 @@ BEGIN IDS_CONV_CONSUMPTION "Consumption (engines)" IDS_CONV_CURRENCY "Συνάλλαγμα" IDS_CONV_ENERGY "Ενέργεια" - IDS_CONV_LENGTH "Lenghts" + IDS_CONV_LENGTH "Lengths" IDS_CONV_POWER "Δύναμη" IDS_CONV_PRESSURE "Πίεση" IDS_CONV_TEMPERATURE "Θερμοκρασία" diff --git a/reactos/base/applications/calc/lang/ko-KR.rc b/reactos/base/applications/calc/lang/ko-KR.rc index b41a4c2d048..91416575505 100644 --- a/reactos/base/applications/calc/lang/ko-KR.rc +++ b/reactos/base/applications/calc/lang/ko-KR.rc @@ -448,7 +448,7 @@ BEGIN IDS_CONV_CONSUMPTION "Consumption (engines)" IDS_CONV_CURRENCY "Currencies" IDS_CONV_ENERGY "Energy" - IDS_CONV_LENGTH "Lenghts" + IDS_CONV_LENGTH "Lengths" IDS_CONV_POWER "Power" IDS_CONV_PRESSURE "Pressure" IDS_CONV_TEMPERATURE "Temperature" diff --git a/reactos/base/applications/calc/lang/th-TH.rc b/reactos/base/applications/calc/lang/th-TH.rc index 0523abc93bf..8cf1a06d742 100644 --- a/reactos/base/applications/calc/lang/th-TH.rc +++ b/reactos/base/applications/calc/lang/th-TH.rc @@ -449,7 +449,7 @@ BEGIN IDS_CONV_CONSUMPTION "Consumption (engines)" IDS_CONV_CURRENCY "Currencies" IDS_CONV_ENERGY "Energy" - IDS_CONV_LENGTH "Lenghts" + IDS_CONV_LENGTH "Lengths" IDS_CONV_POWER "Power" IDS_CONV_PRESSURE "Pressure" IDS_CONV_TEMPERATURE "Temperature" diff --git a/reactos/base/applications/sndrec32/audio_resampler_acm.cpp b/reactos/base/applications/sndrec32/audio_resampler_acm.cpp index c7f585963e2..32b7b4f63fe 100644 --- a/reactos/base/applications/sndrec32/audio_resampler_acm.cpp +++ b/reactos/base/applications/sndrec32/audio_resampler_acm.cpp @@ -118,7 +118,7 @@ audio_resampler_acm::open( void ) // - // Calcs source buffer lenght + // Calcs source buffer length // src_buflen = ( unsigned int ) @@ -130,7 +130,7 @@ audio_resampler_acm::open( void ) // - // Calcs destination source buffer lenght + // Calcs destination source buffer length // with help of ACM apis // diff --git a/reactos/base/applications/sndrec32/audio_wavein.hpp b/reactos/base/applications/sndrec32/audio_wavein.hpp index 53f7fb070b7..6ec0879589e 100644 --- a/reactos/base/applications/sndrec32/audio_wavein.hpp +++ b/reactos/base/applications/sndrec32/audio_wavein.hpp @@ -229,7 +229,7 @@ class audio_wavein // - // Set seconds lenght for each + // Set seconds length for each // buffer. // diff --git a/reactos/base/applications/sndrec32/lang/de-DE.rc b/reactos/base/applications/sndrec32/lang/de-DE.rc index f90d9e6c7b1..872366404c2 100644 --- a/reactos/base/applications/sndrec32/lang/de-DE.rc +++ b/reactos/base/applications/sndrec32/lang/de-DE.rc @@ -45,7 +45,7 @@ END STRINGTABLE BEGIN IDS_STRPOS "Position: %.2f s"//FIXME - IDS_STRDUR "Lenght: %.2f s" + IDS_STRDUR "Length: %.2f s" IDS_STRBUF "Buffer: %.2f kb" IDS_STRFMT "%.1f kHz %u bits" IDS_STRMONO "mono" diff --git a/reactos/base/applications/sndrec32/lang/en-US.rc b/reactos/base/applications/sndrec32/lang/en-US.rc index 1491ed75180..be692f29361 100644 --- a/reactos/base/applications/sndrec32/lang/en-US.rc +++ b/reactos/base/applications/sndrec32/lang/en-US.rc @@ -45,7 +45,7 @@ END STRINGTABLE BEGIN IDS_STRPOS "Position: %.2f s" - IDS_STRDUR "Lenght: %.2f s" + IDS_STRDUR "Length: %.2f s" IDS_STRBUF "Buffer: %.2f kb" IDS_STRFMT "%.1f kHz %u bits" IDS_STRMONO "mono" diff --git a/reactos/base/applications/sndrec32/lang/es-ES.rc b/reactos/base/applications/sndrec32/lang/es-ES.rc index 0234add71ae..f3ecc030603 100644 --- a/reactos/base/applications/sndrec32/lang/es-ES.rc +++ b/reactos/base/applications/sndrec32/lang/es-ES.rc @@ -45,7 +45,7 @@ END STRINGTABLE BEGIN IDS_STRPOS "Position: %.2f s"//FIXME - IDS_STRDUR "Lenght: %.2f s" + IDS_STRDUR "Length: %.2f s" IDS_STRBUF "Buffer: %.2f kb" IDS_STRFMT "%.1f kHz %u bits" IDS_STRMONO "mono" diff --git a/reactos/base/services/eventlog/file.c b/reactos/base/services/eventlog/file.c index 306617d3ba9..a6ac99cbe0b 100644 --- a/reactos/base/services/eventlog/file.c +++ b/reactos/base/services/eventlog/file.c @@ -983,7 +983,7 @@ BOOL LogfWriteData(PLOGFILE LogFile, DWORD BufSize, PBYTE Buffer) /* Check the size of the record as the record adding may be larger */ if (OverWriteLength >= BufSize) { - DPRINT("Record will fit. Lenght %d, BufSize %d\n", OverWriteLength, BufSize); + DPRINT("Record will fit. Length %d, BufSize %d\n", OverWriteLength, BufSize); LogFile->Header.StartOffset = LogfOffsetByNumber(LogFile, LogFile->Header.OldestRecordNumber); break; } diff --git a/reactos/boot/freeldr/freeldr/include/fs/ext2.h b/reactos/boot/freeldr/freeldr/include/fs/ext2.h index 579729387a4..4ea45c5635f 100644 --- a/reactos/boot/freeldr/freeldr/include/fs/ext2.h +++ b/reactos/boot/freeldr/freeldr/include/fs/ext2.h @@ -43,7 +43,7 @@ #define EXT2_MAGIC 0xEF53 /* Amount of indirect blocks in an inode. */ #define INDIRECT_BLOCKS 12 -/* Maximum lenght of a pathname. */ +/* Maximum length of a pathname. */ #define EXT2_PATH_MAX 4096 /* Maximum nesting of symlinks, used to prevent a loop. */ #define EXT2_MAX_SYMLINKCNT 8 diff --git a/reactos/dll/win32/kernel32/client/path.c b/reactos/dll/win32/kernel32/client/path.c index 2c92cce32b1..39a1cb2f0ea 100644 --- a/reactos/dll/win32/kernel32/client/path.c +++ b/reactos/dll/win32/kernel32/client/path.c @@ -1437,7 +1437,7 @@ Quickie: RtlFreeHeap(RtlGetProcessHeap(), 0, PathString.Buffer); } - /* Return the final result lenght */ + /* Return the final result length */ return Result; } diff --git a/reactos/drivers/filesystems/fastfat/fastio.c b/reactos/drivers/filesystems/fastfat/fastio.c index 8e511cf85e6..ad7368b7774 100644 --- a/reactos/drivers/filesystems/fastfat/fastio.c +++ b/reactos/drivers/filesystems/fastfat/fastio.c @@ -12,7 +12,7 @@ static BOOLEAN NTAPI VfatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, - IN ULONG Lenght, + IN ULONG Length, IN BOOLEAN Wait, IN ULONG LockKey, IN BOOLEAN CheckForReadOperation, diff --git a/reactos/drivers/filesystems/fastfat_new/fastio.c b/reactos/drivers/filesystems/fastfat_new/fastio.c index 3e9f39a7205..f6044535328 100644 --- a/reactos/drivers/filesystems/fastfat_new/fastio.c +++ b/reactos/drivers/filesystems/fastfat_new/fastio.c @@ -17,7 +17,7 @@ BOOLEAN NTAPI FatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, - IN ULONG Lenght, + IN ULONG Length, IN BOOLEAN Wait, IN ULONG LockKey, IN BOOLEAN CheckForReadOperation, diff --git a/reactos/include/ndk/iofuncs.h b/reactos/include/ndk/iofuncs.h index e18a88557c5..4c1073b4a09 100644 --- a/reactos/include/ndk/iofuncs.h +++ b/reactos/include/ndk/iofuncs.h @@ -1029,7 +1029,7 @@ ZwUnlockFile( _In_ HANDLE FileHandle, _Out_ PIO_STATUS_BLOCK IoStatusBlock, _In_ PLARGE_INTEGER ByteOffset, - _In_ PLARGE_INTEGER Lenght, + _In_ PLARGE_INTEGER Length, _In_opt_ ULONG Key ); diff --git a/reactos/lib/drivers/lwip/src/core/snmp/msg_out.c b/reactos/lib/drivers/lwip/src/core/snmp/msg_out.c index 4778bee6f41..f9e51c2c084 100644 --- a/reactos/lib/drivers/lwip/src/core/snmp/msg_out.c +++ b/reactos/lib/drivers/lwip/src/core/snmp/msg_out.c @@ -313,7 +313,7 @@ snmp_authfail_trap(void) * * @param vb_len varbind-list length * @param rhl points to returned header lengths - * @return the required lenght for encoding the response header + * @return the required length for encoding the response header */ static u16_t snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len) @@ -360,7 +360,7 @@ snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len) * * @param vb_len varbind-list length * @param thl points to returned header lengths - * @return the required lenght for encoding the trap header + * @return the required length for encoding the trap header */ static u16_t snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len) @@ -415,7 +415,7 @@ snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len) * annotates lengths in varbind for second encoding pass. * * @param root points to the root of the variable binding list - * @return the required lenght for encoding the variable bindings + * @return the required length for encoding the variable bindings */ static u16_t snmp_varbind_list_sum(struct snmp_varbind_root *root) @@ -429,7 +429,7 @@ snmp_varbind_list_sum(struct snmp_varbind_root *root) vb = root->tail; while ( vb != NULL ) { - /* encoded value lenght depends on type */ + /* encoded value length depends on type */ switch (vb->value_type) { case (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG): diff --git a/reactos/lib/drivers/lwip/src/core/tcp_in.c b/reactos/lib/drivers/lwip/src/core/tcp_in.c index 399d32f508e..302d336c73b 100644 --- a/reactos/lib/drivers/lwip/src/core/tcp_in.c +++ b/reactos/lib/drivers/lwip/src/core/tcp_in.c @@ -1382,7 +1382,7 @@ tcp_receive(struct tcp_pcb *pcb) } break; } else { - /* Either the lenghts are the same or the incoming + /* Either the lengths are the same or the incoming segment was smaller than the old one; in either case, we ditch the incoming segment. */ break; diff --git a/reactos/ntoskrnl/io/iomgr/util.c b/reactos/ntoskrnl/io/iomgr/util.c index 747b9b2f5b4..3b579365917 100644 --- a/reactos/ntoskrnl/io/iomgr/util.c +++ b/reactos/ntoskrnl/io/iomgr/util.c @@ -171,7 +171,7 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer, PAGED_CODE(); - /* Lenght of the rest. Inital equal to EaLength */ + /* Length of the rest. Inital equal to EaLength */ IntEaLength = EaLength; /* Inital EaBuffer equal to EaBuffer */ diff --git a/reactos/ntoskrnl/io/pnpmgr/pnputil.c b/reactos/ntoskrnl/io/pnpmgr/pnputil.c index 2da735409fc..bdb24047b0c 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnputil.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnputil.c @@ -156,7 +156,7 @@ PnpRegMultiSzToUnicodeStrings(IN PKEY_VALUE_FULL_INFORMATION KeyValueInformation /* Null-terminate the string ourselves */ (*UnicodeStringList)[i].Buffer[n / sizeof(WCHAR)] = UNICODE_NULL; - /* Set the lenghts */ + /* Set the lengths */ (*UnicodeStringList)[i].Length = (USHORT)n; (*UnicodeStringList)[i].MaximumLength = (USHORT)(n + sizeof(UNICODE_NULL)); } diff --git a/reactos/ntoskrnl/kd/kdio.c b/reactos/ntoskrnl/kd/kdio.c index bcddcdb989f..aaeefbfa302 100644 --- a/reactos/ntoskrnl/kd/kdio.c +++ b/reactos/ntoskrnl/kd/kdio.c @@ -31,8 +31,8 @@ KD_PORT_INFORMATION SerialPortInfo = { DEFAULT_DEBUG_PORT, DEFAULT_DEBUG_BAUD_RA /* Current Port in use. FIXME: Do we support more then one? */ ULONG KdpPort; -#define KdpScreenLineLenght 80 -CHAR KdpScreenLineBuffer[KdpScreenLineLenght + 1] = ""; +#define KdpScreenLineLengthDefault 80 +CHAR KdpScreenLineBuffer[KdpScreenLineLengthDefault + 1] = ""; ULONG KdpScreenLineBufferPos = 0, KdpScreenLineLength = 0; const ULONG KdpDmesgBufferSize = 128 * 1024; // 512*1024; // 5*1024*1024; @@ -427,7 +427,7 @@ KdpScreenPrint(LPSTR Message, KdpScreenLineBuffer[KdpScreenLineLength] = '\0'; } - if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLenght) + if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLengthDefault) { /* Print buffered characters */ if(KdpScreenLineBufferPos != KdpScreenLineLength)