fixed warnings when compiled with -Wwrite-strings
Modified: trunk/reactos/apps/utils/net/ipconfig/ipconfig.c
Modified: trunk/reactos/apps/utils/net/netstat/netstat.c
Modified: trunk/reactos/apps/utils/net/netstat/netstat.h
_____
Modified: trunk/reactos/apps/utils/net/ipconfig/ipconfig.c
--- trunk/reactos/apps/utils/net/ipconfig/ipconfig.c 2005-11-11
18:19:12 UTC (rev 19136)
+++ trunk/reactos/apps/utils/net/ipconfig/ipconfig.c 2005-11-11
18:22:07 UTC (rev 19137)
@@ -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 GetInterfaceTypeName(UINT InterfaceType)
+LPCTSTR GetInterfaceTypeName(UINT InterfaceType)
{
switch (InterfaceType) {
case MIB_IF_TYPE_OTHER: return _T("Other Type Of Adapter");
_____
Modified: trunk/reactos/apps/utils/net/netstat/netstat.c
--- trunk/reactos/apps/utils/net/netstat/netstat.c 2005-11-11
18:19:12 UTC (rev 19136)
+++ trunk/reactos/apps/utils/net/netstat/netstat.c 2005-11-11
18:22:07 UTC (rev 19137)
@@ -523,7 +523,7 @@
* 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;
_____
Modified: trunk/reactos/apps/utils/net/netstat/netstat.h
--- trunk/reactos/apps/utils/net/netstat/netstat.h 2005-11-11
18:19:12 UTC (rev 19136)
+++ trunk/reactos/apps/utils/net/netstat/netstat.h 2005-11-11
18:22:07 UTC (rev 19137)
@@ -54,7 +54,7 @@
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);
Show replies by date