mirror of
https://github.com/reactos/reactos.git
synced 2026-07-04 11:14:23 +08:00
fixed warnings when compiled with -Wwrite-strings
svn path=/trunk/; revision=19137
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#define _UNICODE
|
||||
|
||||
|
||||
PTCHAR GetNodeTypeName(UINT NodeType)
|
||||
LPCTSTR GetNodeTypeName(UINT NodeType)
|
||||
{
|
||||
switch (NodeType) {
|
||||
case 1: return _T("Broadcast");
|
||||
@@ -43,7 +43,7 @@ PTCHAR GetNodeTypeName(UINT NodeType)
|
||||
}
|
||||
}
|
||||
|
||||
PTCHAR GetInterfaceTypeName(UINT InterfaceType)
|
||||
LPCTSTR GetInterfaceTypeName(UINT InterfaceType)
|
||||
{
|
||||
switch (InterfaceType) {
|
||||
case MIB_IF_TYPE_OTHER: return _T("Other Type Of Adapter");
|
||||
|
||||
@@ -523,7 +523,7 @@ VOID ShowUdpTable()
|
||||
* Translate port numbers into their text equivalent if there is one
|
||||
*/
|
||||
PCHAR
|
||||
GetPortName(UINT Port, PCHAR Proto, CHAR Name[], INT NameLen)
|
||||
GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen)
|
||||
{
|
||||
struct servent *pSrvent;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ VOID ShowUdpStatistics(VOID);
|
||||
VOID ShowEthernetStatistics(VOID);
|
||||
VOID ShowTcpTable(VOID);
|
||||
VOID ShowUdpTable(VOID);
|
||||
PCHAR GetPortName(UINT Port, PCHAR Proto, CHAR Name[PORTNAMELEN], INT NameLen);
|
||||
PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[PORTNAMELEN], INT NameLen);
|
||||
PCHAR GetIpHostName(BOOL local, UINT ipaddr, CHAR name[HOSTNAMELEN], int namelen);
|
||||
VOID Usage(VOID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user