netstat: Make functions static.
This commit is contained in:
parent
5e3e7304a1
commit
7357b65d62
|
@ -107,7 +107,7 @@ static int __cdecl NETSTAT_wprintf(const WCHAR *format, ...)
|
||||||
return nOut;
|
return nOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
WCHAR *NETSTAT_load_message(UINT id) {
|
static WCHAR *NETSTAT_load_message(UINT id) {
|
||||||
static WCHAR msg[2048];
|
static WCHAR msg[2048];
|
||||||
static const WCHAR failedW[] = {'F','a','i','l','e','d','!','\0'};
|
static const WCHAR failedW[] = {'F','a','i','l','e','d','!','\0'};
|
||||||
|
|
||||||
|
@ -118,14 +118,14 @@ WCHAR *NETSTAT_load_message(UINT id) {
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
WCHAR *NETSTAT_port_name(UINT port, WCHAR name[])
|
static WCHAR *NETSTAT_port_name(UINT port, WCHAR name[])
|
||||||
{
|
{
|
||||||
/* FIXME: can we get the name? */
|
/* FIXME: can we get the name? */
|
||||||
sprintfW(name, fmtport, htons((WORD)port));
|
sprintfW(name, fmtport, htons((WORD)port));
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
WCHAR *NETSTAT_host_name(UINT ip, WCHAR name[])
|
static WCHAR *NETSTAT_host_name(UINT ip, WCHAR name[])
|
||||||
{
|
{
|
||||||
UINT nip;
|
UINT nip;
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ WCHAR *NETSTAT_host_name(UINT ip, WCHAR name[])
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NETSTAT_tcp_table(void)
|
static void NETSTAT_tcp_table(void)
|
||||||
{
|
{
|
||||||
PMIB_TCPTABLE table;
|
PMIB_TCPTABLE table;
|
||||||
DWORD err, size, i;
|
DWORD err, size, i;
|
||||||
|
|
Loading…
Reference in New Issue