fixed warnings when compiled with -Wwrite-strings
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 11 Nov 2005 18:22:07 +0000 (18:22 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 11 Nov 2005 18:22:07 +0000 (18:22 +0000)
svn path=/trunk/; revision=19137

reactos/apps/utils/net/ipconfig/ipconfig.c
reactos/apps/utils/net/netstat/netstat.c
reactos/apps/utils/net/netstat/netstat.h

index ef82c22..e440508 100644 (file)
@@ -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");
index 3b8c5e9..947cc30 100644 (file)
@@ -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;
 
index 728d154..0417aeb 100644 (file)
@@ -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);