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
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 "Θερμοκρασία"
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"
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"
//
- // Calcs source buffer lenght
+ // Calcs source buffer length
//
src_buflen = ( unsigned int )
//
- // Calcs destination source buffer lenght
+ // Calcs destination source buffer length
// with help of ACM apis
//
//
- // Set seconds lenght for each
+ // Set seconds length for each
// buffer.
//
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"
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"
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"
/* 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;
}
#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
RtlFreeHeap(RtlGetProcessHeap(), 0, PathString.Buffer);
}
- /* Return the final result lenght */
+ /* Return the final result length */
return Result;
}
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,
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,
_In_ HANDLE FileHandle,
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
_In_ PLARGE_INTEGER ByteOffset,
- _In_ PLARGE_INTEGER Lenght,
+ _In_ PLARGE_INTEGER Length,
_In_opt_ ULONG Key
);
*
* @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)
*
* @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)
* 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)
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):
}
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;
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 */
/* 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));
}
/* 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;
KdpScreenLineBuffer[KdpScreenLineLength] = '\0';
}
- if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLenght)
+ if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLengthDefault)
{
/* Print buffered characters */
if(KdpScreenLineBufferPos != KdpScreenLineLength)