iphlpapi: Make getInterfacePhysicalByName() static.

Francois Gouget fgouget at free.fr
Wed May 13 03:35:50 CDT 2009


---
 dlls/iphlpapi/ifenum.c |    6 +++---
 dlls/iphlpapi/ifenum.h |    2 --
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c
index 19c3c3c..d348229 100644
--- a/dlls/iphlpapi/ifenum.c
+++ b/dlls/iphlpapi/ifenum.c
@@ -299,7 +299,7 @@ static DWORD getInterfaceMaskByName(const char *name)
 }
 
 #if defined (SIOCGIFHWADDR)
-DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
+static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
  PDWORD type)
 {
   DWORD ret;
@@ -387,7 +387,7 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
   return ret;
 }
 #elif defined (SIOCGARP)
-DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
+static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
  PDWORD type)
 {
   DWORD ret;
@@ -446,7 +446,7 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
   return ret;
 }
 #elif defined (HAVE_SYS_SYSCTL_H) && defined (HAVE_NET_IF_DL_H)
-DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
+static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
  PDWORD type)
 {
   DWORD ret;
diff --git a/dlls/iphlpapi/ifenum.h b/dlls/iphlpapi/ifenum.h
index 6835dca..c348191 100644
--- a/dlls/iphlpapi/ifenum.h
+++ b/dlls/iphlpapi/ifenum.h
@@ -86,8 +86,6 @@ DWORD getInterfaceIndexByName(const char *name, PDWORD index);
  * if internal errors occur.
  * Returns NO_ERROR on success.
  */
-DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
- PDWORD type);
 DWORD getInterfacePhysicalByIndex(DWORD index, PDWORD len, PBYTE addr,
  PDWORD type);
 
-- 
1.6.2.1




More information about the wine-patches mailing list