diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-06 08:20:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-06 08:20:31 +0000 |
commit | 1ba3fd86fd226554722db54232620faf529438e2 (patch) | |
tree | 589072b61ef323de367311476aefb9b81ca49dc0 /src/modules/netlib/netlib.cpp | |
parent | 0750bd2a0d25bed656d21eb65e6ca6627e7a6b66 (diff) |
misprint in service name
git-svn-id: http://svn.miranda-ng.org/main/trunk@6368 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib/netlib.cpp')
-rw-r--r-- | src/modules/netlib/netlib.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/netlib/netlib.cpp b/src/modules/netlib/netlib.cpp index e56cf59811..5825bc9801 100644 --- a/src/modules/netlib/netlib.cpp +++ b/src/modules/netlib/netlib.cpp @@ -359,15 +359,13 @@ INT_PTR NetlibStringToAddressSrv(WPARAM wParam, LPARAM lParam) INT_PTR NetlibAddressToStringSrv(WPARAM wParam, LPARAM lParam)
{
- if (wParam)
- {
+ if (wParam) {
SOCKADDR_INET_M iaddr = {0};
iaddr.Ipv4.sin_family = AF_INET;
iaddr.Ipv4.sin_addr.s_addr = htonl((unsigned)lParam);
return (INT_PTR)NetlibAddressToString(&iaddr);
}
- else
- return (INT_PTR)NetlibAddressToString((SOCKADDR_INET_M*)lParam);
+ return (INT_PTR)NetlibAddressToString((SOCKADDR_INET_M*)lParam);
}
INT_PTR NetlibGetConnectionInfoSrv(WPARAM wParam, LPARAM lParam)
@@ -526,7 +524,7 @@ int LoadNetlibModule(void) CreateServiceFunction(MS_NETLIB_GETMOREPACKETS, NetlibPacketRecverGetMore);
CreateServiceFunction(MS_NETLIB_SETPOLLINGTIMEOUT, NetlibHttpSetPollingTimeout);
CreateServiceFunction(MS_NETLIB_STARTSSL, NetlibStartSsl);
- CreateServiceFunction(MS_NETLIB_STARINGTOADDRESS, NetlibStringToAddressSrv);
+ CreateServiceFunction(MS_NETLIB_STRINGTOADDRESS, NetlibStringToAddressSrv);
CreateServiceFunction(MS_NETLIB_ADDRESSTOSTRING, NetlibAddressToStringSrv);
CreateServiceFunction(MS_NETLIB_GETCONNECTIONINFO, NetlibGetConnectionInfoSrv);
CreateServiceFunction(MS_NETLIB_GETMYIP, NetlibGetMyIp);
|