[REACTOS]

Correct spelling of "receive" throughout the codebase.
Patch by andygui.

CORE-7062 #resolve #comment Fixed in revision r58744. Thanks :)

svn path=/trunk/; revision=58744
This commit is contained in:
Hermès Bélusca-Maïto 2013-04-13 21:28:10 +00:00
parent fda13e9c4c
commit 157aa32663
21 changed files with 48 additions and 48 deletions

View file

@ -259,13 +259,13 @@ VOID ShowIpStatistics()
if ((dwRetVal = GetIpStatistics(pIpStats)) == NO_ERROR)
{
_tprintf(_T("\nIPv4 Statistics\n\n"));
_tprintf(_T(" %-34s = %lu\n"), _T("Packets Recieved"), pIpStats->dwInReceives);
_tprintf(_T(" %-34s = %lu\n"), _T("Packets Received"), pIpStats->dwInReceives);
_tprintf(_T(" %-34s = %lu\n"), _T("Received Header Errors"), pIpStats->dwInHdrErrors);
_tprintf(_T(" %-34s = %lu\n"), _T("Received Address Errors"), pIpStats->dwInAddrErrors);
_tprintf(_T(" %-34s = %lu\n"), _T("Datagrams Forwarded"), pIpStats->dwForwDatagrams);
_tprintf(_T(" %-34s = %lu\n"), _T("Unknown Protocols Recieved"), pIpStats->dwInUnknownProtos);
_tprintf(_T(" %-34s = %lu\n"), _T("Unknown Protocols Received"), pIpStats->dwInUnknownProtos);
_tprintf(_T(" %-34s = %lu\n"), _T("Received Packets Discarded"), pIpStats->dwInDiscards);
_tprintf(_T(" %-34s = %lu\n"), _T("Recieved Packets Delivered"), pIpStats->dwInDelivers);
_tprintf(_T(" %-34s = %lu\n"), _T("Received Packets Delivered"), pIpStats->dwInDelivers);
_tprintf(_T(" %-34s = %lu\n"), _T("Output Requests"), pIpStats->dwOutRequests);
_tprintf(_T(" %-34s = %lu\n"), _T("Routing Discards"), pIpStats->dwRoutingDiscards);
_tprintf(_T(" %-34s = %lu\n"), _T("Discarded Output Packets"), pIpStats->dwOutDiscards);
@ -343,7 +343,7 @@ VOID ShowTcpStatistics()
_tprintf(_T(" %-35s = %lu\n"), _T("Failed Connection Attempts"), pTcpStats->dwAttemptFails);
_tprintf(_T(" %-35s = %lu\n"), _T("Reset Connections"), pTcpStats->dwEstabResets);
_tprintf(_T(" %-35s = %lu\n"), _T("Current Connections"), pTcpStats->dwCurrEstab);
_tprintf(_T(" %-35s = %lu\n"), _T("Segments Recieved"), pTcpStats->dwInSegs);
_tprintf(_T(" %-35s = %lu\n"), _T("Segments Received"), pTcpStats->dwInSegs);
_tprintf(_T(" %-35s = %lu\n"), _T("Segments Sent"), pTcpStats->dwOutSegs);
_tprintf(_T(" %-35s = %lu\n"), _T("Segments Retransmitted"), pTcpStats->dwRetransSegs);
}
@ -363,9 +363,9 @@ VOID ShowUdpStatistics()
if ((dwRetVal = GetUdpStatistics(pUdpStats)) == NO_ERROR)
{
_tprintf(_T("\nUDP Statistics for IPv4\n\n"));
_tprintf(_T(" %-21s = %lu\n"), _T("Datagrams Recieved"), pUdpStats->dwInDatagrams);
_tprintf(_T(" %-21s = %lu\n"), _T("Datagrams Received"), pUdpStats->dwInDatagrams);
_tprintf(_T(" %-21s = %lu\n"), _T("No Ports"), pUdpStats->dwNoPorts);
_tprintf(_T(" %-21s = %lu\n"), _T("Recieve Errors"), pUdpStats->dwInErrors);
_tprintf(_T(" %-21s = %lu\n"), _T("Receive Errors"), pUdpStats->dwInErrors);
_tprintf(_T(" %-21s = %lu\n"), _T("Datagrams Sent"), pUdpStats->dwOutDatagrams);
}
else

View file

@ -343,7 +343,7 @@ ReceivePacket(PAPPINFO pInfo)
if (iSockRet != SOCKET_ERROR)
{
/* get time packet was recieved */
/* get time packet was received */
pInfo->lTimeEnd = GetTime(pInfo);
DebugPrint(_T("reveived %d bytes\n"), iSockRet);
bRet = TRUE;
@ -362,7 +362,7 @@ DecodeResponse(PAPPINFO pInfo)
{
unsigned short header_len = pInfo->RecvPacket->h_len * 4;
/* cast the recieved packet into an ECHO reply and a TTL Exceed and check the ID*/
/* cast the received packet into an ECHO reply and a TTL Exceed and check the ID*/
ECHO_REPLY_HEADER *IcmpHdr = (ECHO_REPLY_HEADER *)((char*)pInfo->RecvPacket + header_len);
/* Make sure the reply is ok */
@ -426,7 +426,7 @@ Driver(PAPPINFO pInfo)
{
INT iHopCount = 1; // hop counter. default max is 30
BOOL bFoundTarget = FALSE; // Have we reached our destination yet
INT iRecieveReturn; // RecieveReturn return value
INT iReceiveReturn; // ReceiveReturn return value
PECHO_REPLY_HEADER icmphdr;
INT iTTL = 1;
@ -470,14 +470,14 @@ Driver(PAPPINFO pInfo)
if (SendPacket(pInfo) != SOCKET_ERROR)
{
BOOL bAwaitPacket = FALSE; // indicates whether we have recieved a good packet
BOOL bAwaitPacket = FALSE; // indicates whether we have received a good packet
do
{
/* Receive replies until we get a successful read, or a fatal error */
if ((iRecieveReturn = ReceivePacket(pInfo)) < 0)
if ((iReceiveReturn = ReceivePacket(pInfo)) < 0)
{
/* FIXME: consider moving this into RecievePacket */
/* FIXME: consider moving this into ReceivePacket */
/* check the seq num in the packet, if it's bad wait for another */
WORD hdrLen = pInfo->RecvPacket->h_len * 4;
icmphdr = (ECHO_REPLY_HEADER *)((char*)&pInfo->RecvPacket + hdrLen);
@ -488,7 +488,7 @@ Driver(PAPPINFO pInfo)
}
}
if (iRecieveReturn)
if (iReceiveReturn)
{
if (DecodeResponse(pInfo) < 0)
bAwaitPacket = TRUE;

View file

@ -75,7 +75,7 @@ GLvoid BuildFont(GLvoid)
0.0f, // Deviation From The True Outlines
0.2f, // Font Thickness In The Z Direction
WGL_FONT_POLYGONS, // Use Polygons, Not Lines
gmf); // Address Of Buffer To Recieve Data
gmf); // Address Of Buffer To Receive Data
// Calculate the string extent
for (i = 0; i < _tcslen(m_Text); i++)

View file

@ -2,7 +2,7 @@
* PROJECT: ReactOS simple TCP/IP services
* LICENSE: GPL - See COPYING in the top level directory
* FILE: /base/services/tcpsvcs/discard.c
* PURPOSE: Recieves input from a client and discards it
* PURPOSE: Receives input from a client and discards it
* COPYRIGHT: Copyright 2005 - 2008 Ged Murphy <gedmurphy@reactos.org>
*
*/
@ -12,7 +12,7 @@
#define BUFSIZE 1024
static BOOL
RecieveIncomingPackets(SOCKET sock)
ReceiveIncomingPackets(SOCKET sock)
{
CHAR readBuffer[BUFSIZE];
INT readBytes;
@ -46,9 +46,9 @@ DiscardHandler(VOID* sock_)
DWORD retVal = 0;
SOCKET sock = (SOCKET)sock_;
if (!RecieveIncomingPackets(sock))
if (!ReceiveIncomingPackets(sock))
{
LogEvent(L"Discard: RecieveIncomingPackets failed", 0, 0, LOG_FILE);
LogEvent(L"Discard: ReceiveIncomingPackets failed", 0, 0, LOG_FILE);
retVal = 1;
}

View file

@ -22,7 +22,7 @@
#pragma once
BOOLEAN Rs232PortInitialize(ULONG ComPort, ULONG BaudRate);
BOOLEAN Rs232PortGetByte(PUCHAR ByteRecieved);
// BOOLEAN Rs232PortPollByte(PUCHAR ByteRecieved);
BOOLEAN Rs232PortGetByte(PUCHAR ByteReceived);
// BOOLEAN Rs232PortPollByte(PUCHAR ByteReceived);
VOID Rs232PortPutByte(UCHAR ByteToSend);
BOOLEAN Rs232PortInUse(PUCHAR Base);

View file

@ -79,7 +79,7 @@ FindDateSep(const TCHAR *szSourceStr)
return pszFoundSep;
}
/* Replace given template in source string with string to replace and return recieved string */
/* Replace given template in source string with string to replace and return received string */
/* Setted up short date separator to registry */

View file

@ -111,7 +111,7 @@ InsSpacesFmt(LPCTSTR szSourceStr, LPCTSTR szFmtStr)
return pszDestStr;
}
/* Replace given template in source string with string to replace and return recieved string */
/* Replace given template in source string with string to replace and return received string */
LPTSTR
ReplaceSubStr(LPCTSTR szSourceStr,
LPCTSTR szStrToReplace,

View file

@ -125,7 +125,7 @@ InsSpacesFmt(const TCHAR *szSourceStr, const TCHAR *szFmtStr)
return pszDestStr;
}
/* Replace given template in source string with string to replace and return recieved string */
/* Replace given template in source string with string to replace and return received string */
TCHAR*
ReplaceSubStr(const TCHAR *szSourceStr,
const TCHAR *szStrToReplace,

View file

@ -99,7 +99,7 @@ SendData(PINFO pInfo)
static ULONG
RecieveData(PINFO pInfo)
ReceiveData(PINFO pInfo)
{
TIMEVAL timeVal;
FD_SET readFDS;
@ -164,7 +164,7 @@ GetServerTime(LPWSTR lpAddress)
{
if (SendData(pInfo))
{
ulTime = RecieveData(pInfo);
ulTime = ReceiveData(pInfo);
}
}

View file

@ -548,14 +548,14 @@ ScServiceDispatcher(HANDLE hPipe,
{
case SERVICE_CONTROL_START_SHARE:
case SERVICE_CONTROL_START_OWN:
TRACE("Start command - recieved SERVICE_CONTROL_START\n");
TRACE("Start command - received SERVICE_CONTROL_START\n");
dwError = ScStartService(lpService, ControlPacket);
if (dwError == ERROR_SUCCESS)
dwRunningServices++;
break;
case SERVICE_CONTROL_STOP:
TRACE("Stop command - recieved SERVICE_CONTROL_STOP\n");
TRACE("Stop command - received SERVICE_CONTROL_STOP\n");
dwError = ScControlService(lpService, ControlPacket);
if (dwError == ERROR_SUCCESS)
dwRunningServices--;

View file

@ -31,7 +31,7 @@ KdpSendBuffer(
/******************************************************************************
* \name KdpReceiveBuffer
* \brief Recieves data from the KD port and fills a buffer.
* \brief Receives data from the KD port and fills a buffer.
* \param Buffer Pointer to a buffer that receives the data.
* \param Size Size of data to receive in bytes.
* \return KDP_PACKET_RECEIVED if successful.
@ -64,7 +64,7 @@ KdpReceiveBuffer(
/******************************************************************************
* \name KdpReceivePacketLeader
* \brief Recieves a packet leadr from the KD port.
* \brief Receives a packet leadr from the KD port.
* \param PacketLeader Pointer to an ULONG that receives the packet leader.
* \return KDP_PACKET_RECEIVED if successful.
* KDP_PACKET_TIMEOUT if the receive timed out.

View file

@ -369,7 +369,7 @@ CmBattPnpDispatch(IN PDEVICE_OBJECT DeviceObject,
/* Don't do anything, but this is strange since it's already removed */
Status = STATUS_SUCCESS;
if (CmBattDebug & 4)
DbgPrint("CmBattPnpDispatch: Recieved two consecutive QUERY_REMOVE requests.\n");
DbgPrint("CmBattPnpDispatch: Received two consecutive QUERY_REMOVE requests.\n");
}
else
{

View file

@ -18,7 +18,7 @@ CompBattPowerDispatch(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
PCOMPBATT_DEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
if (CompBattDebug & 1) DbgPrint("CompBatt: PowerDispatch recieved power IRP.\n");
if (CompBattDebug & 1) DbgPrint("CompBatt: PowerDispatch received power IRP.\n");
/* Start the next IRP */
PoStartNextPowerIrp(Irp);

View file

@ -228,10 +228,10 @@ typedef struct _NDIS_WAN_GET_STATS_INFO {
OUT ULONG BytesReceivedUncompressed;
OUT ULONG BytesTransmittedCompressed;
OUT ULONG BytesReceivedCompressed;
OUT ULONG TunnelPacketsRecieved;
OUT ULONG TunnelRecievePacketsPending;
OUT ULONG TunnelPacketsReceived;
OUT ULONG TunnelReceivePacketsPending;
OUT ULONG TunnelPacketsIndicatedUp;
OUT ULONG TunnelRecievePacketsRejected;
OUT ULONG TunnelReceivePacketsRejected;
OUT ULONG TunnelPacketsSent;
OUT ULONG TunnelPacketsSentComplete;
OUT ULONG TunnelTransmitPacketsPending;
@ -317,10 +317,10 @@ typedef struct _NDIS_WAN_CO_GET_STATS_INFO {
OUT ULONG BytesReceivedUncompressed;
OUT ULONG BytesTransmittedCompressed;
OUT ULONG BytesReceivedCompressed;
OUT ULONG TunnelPacketsRecieved;
OUT ULONG TunnelRecievePacketsPending;
OUT ULONG TunnelPacketsReceived;
OUT ULONG TunnelReceivePacketsPending;
OUT ULONG TunnelPacketsIndicatedUp;
OUT ULONG TunnelRecievePacketsRejected;
OUT ULONG TunnelReceivePacketsRejected;
OUT ULONG TunnelPacketsSent;
OUT ULONG TunnelPacketsSentComplete;
OUT ULONG TunnelTransmitPacketsPending;

View file

@ -13,7 +13,7 @@
* \name _ftime_s
* \brief Get the current time.
* \param [out] ptimeb Pointer to a structure of type struct _timeb that
* recieves the current time.
* receives the current time.
* \sa http://msdn.microsoft.com/en-us/library/95e68951.aspx
*/
errno_t
@ -45,7 +45,7 @@ _ftime_s(struct _timeb *ptimeb)
* \name _ftime
* \brief Get the current time.
* \param [out] ptimeb Pointer to a structure of type struct _timeb that
* recieves the current time.
* receives the current time.
* \note This function is for compatability and simply calls the secure
* version _ftime_s().
* \sa http://msdn.microsoft.com/en-us/library/z54t9z5f.aspx

View file

@ -46,7 +46,7 @@ HANDLE fdtoh(int fd);
* \name _futime
* \brief Set a file's modification time.
* \param [out] ptimeb Pointer to a structure of type struct _timeb that
* recieves the current time.
* receives the current time.
* \sa http://msdn.microsoft.com/en-us/library/95e68951.aspx
*/
int

View file

@ -32,7 +32,7 @@ WinSta0
-The one-and-only interactive WinSta.
-No other winsta can be visible/active.
-Only WinSta0 can recieve input.
-Only WinSta0 can receive input.
-All other WinSta's are invisible/non-interactive WinStas.
What good is a invisible WinSta? Its used for running services in thus services cant

View file

@ -42,13 +42,13 @@ KdPortInitializeEx(
BOOLEAN
NTAPI
KdPortGetByte(
PUCHAR ByteRecieved);
PUCHAR ByteReceived);
BOOLEAN
NTAPI
KdPortGetByteEx(
PKD_PORT_INFORMATION PortInformation,
PUCHAR ByteRecieved);
PUCHAR ByteReceived);
VOID
NTAPI

View file

@ -514,8 +514,8 @@ typedef struct _SBINFOEX
#define WNDS_HASPALETTE 0x00200000
#define WNDS_PAINTNOTPROCESSED 0x00400000
#define WNDS_SYNCPAINTPENDING 0x00800000
#define WNDS_RECIEVEDQUERYSUSPENDMSG 0x01000000
#define WNDS_RECIEVEDSUSPENDMSG 0x02000000
#define WNDS_RECEIVEDQUERYSUSPENDMSG 0x01000000
#define WNDS_RECEIVEDSUSPENDMSG 0x02000000
#define WNDS_TOGGLETOPMOST 0x04000000
#define WNDS_REDRAWIFHUNG 0x08000000
#define WNDS_REDRAWFRAMEIFHUNG 0x10000000

View file

@ -8,8 +8,8 @@
/*
* FIXME: Hotkey notifications are triggered by keyboard input (physical or programatically)
* and since only desktops on WinSta0 can recieve input in seems very wrong to allow
* windows/threads on destops not belonging to WinSta0 to set hotkeys (recieve notifications).
* and since only desktops on WinSta0 can receive input in seems very wrong to allow
* windows/threads on destops not belonging to WinSta0 to set hotkeys (receive notifications).
* -- Gunnar
*/

View file

@ -673,7 +673,7 @@ cleanup:
* from MONITORINFO will be filled.
*
* pDevice
* Pointer to a UNICODE_STRING which will recieve the device's name. The
* Pointer to a UNICODE_STRING which will receive the device's name. The
* length should be CCHDEVICENAME
* Can be NULL
*