=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: netstat: Make functions static.

Alexandre Julliard julliard at winehq.org
Thu Jan 3 13:31:12 CST 2013


Module: wine
Branch: master
Commit: 7357b65d62a2058c1502094353ff105cfab4de06
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7357b65d62a2058c1502094353ff105cfab4de06

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Jan  2 21:37:17 2013 +0100

netstat: Make functions static.

---

 programs/netstat/netstat.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/programs/netstat/netstat.c b/programs/netstat/netstat.c
index 2fe2e0c..999e409 100644
--- a/programs/netstat/netstat.c
+++ b/programs/netstat/netstat.c
@@ -107,7 +107,7 @@ static int __cdecl NETSTAT_wprintf(const WCHAR *format, ...)
     return nOut;
 }
 
-WCHAR *NETSTAT_load_message(UINT id) {
+static WCHAR *NETSTAT_load_message(UINT id) {
     static WCHAR msg[2048];
     static const WCHAR failedW[]  = {'F','a','i','l','e','d','!','\0'};
 
@@ -118,14 +118,14 @@ WCHAR *NETSTAT_load_message(UINT id) {
     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? */
     sprintfW(name, fmtport, htons((WORD)port));
     return name;
 }
 
-WCHAR *NETSTAT_host_name(UINT ip, WCHAR name[])
+static WCHAR *NETSTAT_host_name(UINT ip, WCHAR name[])
 {
     UINT nip;
 
@@ -135,7 +135,7 @@ WCHAR *NETSTAT_host_name(UINT ip, WCHAR name[])
     return name;
 }
 
-void NETSTAT_tcp_table(void)
+static void NETSTAT_tcp_table(void)
 {
     PMIB_TCPTABLE table;
     DWORD err, size, i;




More information about the wine-cvs mailing list