mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
fixed warnings when compiled with -Wwrite-strings
svn path=/trunk/; revision=19137
This commit is contained in:
parent
56d8a5b253
commit
a450d55fa6
3 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@
|
||||||
#define _UNICODE
|
#define _UNICODE
|
||||||
|
|
||||||
|
|
||||||
PTCHAR GetNodeTypeName(UINT NodeType)
|
LPCTSTR GetNodeTypeName(UINT NodeType)
|
||||||
{
|
{
|
||||||
switch (NodeType) {
|
switch (NodeType) {
|
||||||
case 1: return _T("Broadcast");
|
case 1: return _T("Broadcast");
|
||||||
|
@ -43,7 +43,7 @@ PTCHAR GetNodeTypeName(UINT NodeType)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PTCHAR GetInterfaceTypeName(UINT InterfaceType)
|
LPCTSTR GetInterfaceTypeName(UINT InterfaceType)
|
||||||
{
|
{
|
||||||
switch (InterfaceType) {
|
switch (InterfaceType) {
|
||||||
case MIB_IF_TYPE_OTHER: return _T("Other Type Of Adapter");
|
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
|
* Translate port numbers into their text equivalent if there is one
|
||||||
*/
|
*/
|
||||||
PCHAR
|
PCHAR
|
||||||
GetPortName(UINT Port, PCHAR Proto, CHAR Name[], INT NameLen)
|
GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen)
|
||||||
{
|
{
|
||||||
struct servent *pSrvent;
|
struct servent *pSrvent;
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ VOID ShowUdpStatistics(VOID);
|
||||||
VOID ShowEthernetStatistics(VOID);
|
VOID ShowEthernetStatistics(VOID);
|
||||||
VOID ShowTcpTable(VOID);
|
VOID ShowTcpTable(VOID);
|
||||||
VOID ShowUdpTable(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);
|
PCHAR GetIpHostName(BOOL local, UINT ipaddr, CHAR name[HOSTNAMELEN], int namelen);
|
||||||
VOID Usage(VOID);
|
VOID Usage(VOID);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue