Juan Lang : iphlpapi: Remove redundant comments and fix typos.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jan 20 13:20:21 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 53e634bec6edbc7a893d07d8bf94b168e9bb092a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=53e634bec6edbc7a893d07d8bf94b168e9bb092a
Author: Juan Lang <juan_lang at yahoo.com>
Date: Fri Jan 20 16:16:56 2006 +0100
iphlpapi: Remove redundant comments and fix typos.
---
dlls/iphlpapi/ifenum.c | 2 +-
dlls/iphlpapi/ifenum.h | 8 +++-----
dlls/iphlpapi/iphlpapi_main.c | 18 ++++--------------
3 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c
index 63a66af..e794d09 100644
--- a/dlls/iphlpapi/ifenum.c
+++ b/dlls/iphlpapi/ifenum.c
@@ -34,7 +34,7 @@
* FIXME:
* - I don't support IPv6 addresses here, since SIOCGIFCONF can't return them
*
- * There are three implemened methods for determining the MAC address of an
+ * There are three implemented methods for determining the MAC address of an
* interface:
* - a specific IOCTL (Linux)
* - looking in the ARP cache (at least Solaris)
diff --git a/dlls/iphlpapi/ifenum.h b/dlls/iphlpapi/ifenum.h
index c33eaf7..17d6b5e 100644
--- a/dlls/iphlpapi/ifenum.h
+++ b/dlls/iphlpapi/ifenum.h
@@ -15,11 +15,9 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * This module implements functions shared by DLLs that need to enumerate
- * network interfaces and addresses. It's meant to hide some problematic
- * defines like socket(), as well as provide only one file
- * that needs to be ported to implement these functions on different platforms,
- * since the Windows API provides multiple ways to get at this info.
+ * This module implements network interface and address enumeration. It's
+ * meant to hide some problematic defines like socket(), and make iphlpapi
+ * more portable.
*
* Like Windows, it uses a numeric index to identify an interface uniquely.
* As implemented, an interface represents a UNIX network interface, virtual
diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index 8bc5fdb..1f09c2c 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -87,7 +87,6 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL,
DWORD WINAPI AddIPAddress(IPAddr Address, IPMask IpMask, DWORD IfIndex, PULONG NTEContext, PULONG NTEInstance)
{
FIXME(":stub\n");
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -399,7 +398,6 @@ DWORD WINAPI CreateProxyArpEntry(DWORD d
{
FIXME("(dwAddress 0x%08lx, dwMask 0x%08lx, dwIfIndex 0x%08lx): stub\n",
dwAddress, dwMask, dwIfIndex);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -422,7 +420,6 @@ DWORD WINAPI CreateProxyArpEntry(DWORD d
DWORD WINAPI DeleteIPAddress(ULONG NTEContext)
{
FIXME("(NTEContext %ld): stub\n", NTEContext);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -494,7 +491,6 @@ DWORD WINAPI DeleteProxyArpEntry(DWORD d
{
FIXME("(dwAddress 0x%08lx, dwMask 0x%08lx, dwIfIndex 0x%08lx): stub\n",
dwAddress, dwMask, dwIfIndex);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -520,7 +516,7 @@ DWORD WINAPI EnableRouter(HANDLE * pHand
FIXME("(pHandle %p, pOverlapped %p): stub\n", pHandle, pOverlapped);
/* could echo "1" > /proc/net/sys/net/ipv4/ip_forward, not sure I want to
could map EACCESS to ERROR_ACCESS_DENIED, I suppose
- marking Win2K+ functions not supported */
+ */
return ERROR_NOT_SUPPORTED;
}
@@ -543,8 +539,7 @@ DWORD WINAPI EnableRouter(HANDLE * pHand
DWORD WINAPI FlushIpNetTable(DWORD dwIfIndex)
{
FIXME("(dwIfIndex 0x%08lx): stub\n", dwIfIndex);
- /* this flushes the arp cache of the given index
- marking Win2K+ functions not supported */
+ /* this flushes the arp cache of the given index */
return ERROR_NOT_SUPPORTED;
}
@@ -568,7 +563,6 @@ DWORD WINAPI FlushIpNetTable(DWORD dwIfI
DWORD WINAPI GetAdapterIndex(LPWSTR AdapterName, PULONG IfIndex)
{
FIXME("(AdapterName %p, IfIndex %p): stub\n", AdapterName, IfIndex);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -945,7 +939,7 @@ DWORD WINAPI GetIfTable(PMIB_IFTABLE pIf
* Get a list of network interface adapters.
*
* PARAMS
- * pIfTable [Out] buffer for intertace adapters
+ * pIfTable [Out] buffer for interface adapters
* dwOutBufLen [Out] if buffer is too small, returns required size
*
* RETURNS
@@ -1454,7 +1448,6 @@ DWORD WINAPI GetPerAdapterInfo(ULONG IfI
{
TRACE("(IfIndex %ld, pPerAdapterInfo %p, pOutBufLen %p)\n", IfIndex,
pPerAdapterInfo, pOutBufLen);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -1806,7 +1799,6 @@ DWORD WINAPI IpRenewAddress(PIP_ADAPTER_
DWORD WINAPI NotifyAddrChange(PHANDLE Handle, LPOVERLAPPED overlapped)
{
FIXME("(Handle %p, overlapped %p): stub\n", Handle, overlapped);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -1830,7 +1822,6 @@ DWORD WINAPI NotifyAddrChange(PHANDLE Ha
DWORD WINAPI NotifyRouteChange(PHANDLE Handle, LPOVERLAPPED overlapped)
{
FIXME("(Handle %p, overlapped %p): stub\n", Handle, overlapped);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -1857,7 +1848,6 @@ DWORD WINAPI SendARP(IPAddr DestIP, IPAd
{
FIXME("(DestIP 0x%08lx, SrcIP 0x%08lx, pMacAddr %p, PhyAddrLen %p): stub\n",
DestIP, SrcIP, pMacAddr, PhyAddrLen);
- /* marking Win2K+ functions not supported */
return ERROR_NOT_SUPPORTED;
}
@@ -2027,6 +2017,6 @@ DWORD WINAPI UnenableRouter(OVERLAPPED *
lpdwEnableCount);
/* could echo "0" > /proc/net/sys/net/ipv4/ip_forward, not sure I want to
could map EACCESS to ERROR_ACCESS_DENIED, I suppose
- marking Win2K+ functions not supported */
+ */
return ERROR_NOT_SUPPORTED;
}
More information about the wine-cvs
mailing list