projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integer type name change.
[silc.git]
/
lib
/
silcutil
/
win32
/
silcwin32net.c
diff --git
a/lib/silcutil/win32/silcwin32net.c
b/lib/silcutil/win32/silcwin32net.c
index e4ffc6aa8e3b7bb2f0b1ae3c5364aa1b7b7fe446..fd7542dd5fc9508aa8c6dcadf7b7fadc13623fd5 100644
(file)
--- a/
lib/silcutil/win32/silcwin32net.c
+++ b/
lib/silcutil/win32/silcwin32net.c
@@
-19,6
+19,8
@@
*/
/* $Id$ */
*/
/* $Id$ */
+/* XXX IPv6 support missing */
+
#include "silcincludes.h"
#include "silcnet.h"
#include "silcincludes.h"
#include "silcnet.h"
@@
-28,7
+30,7
@@
If argument `ip_addr' is NULL `any' address will be used. Returns
the created socket or -1 on error. */
If argument `ip_addr' is NULL `any' address will be used. Returns
the created socket or -1 on error. */
-int silc_net_create_server(int port, char *ip_addr)
+int silc_net_create_server(int port, c
onst c
har *ip_addr)
{
SOCKET sock;
int rval;
{
SOCKET sock;
int rval;
@@
-222,8
+224,7
@@
void silc_net_close_connection(int sock)
/* Converts the IP number string from numbers-and-dots notation to
binary form. */
/* Converts the IP number string from numbers-and-dots notation to
binary form. */
-bool silc_net_addr2bin(const char *addr, unsigned char *bin,
- uint32 bin_len)
+bool silc_net_addr2bin(const char *addr, void *bin, SilcUInt32 bin_len)
{
unsigned long ret;
{
unsigned long ret;
@@
-232,8
+233,7
@@
bool silc_net_addr2bin(const char *addr, unsigned char *bin,
if (bin_len < 4)
return FALSE;
if (bin_len < 4)
return FALSE;
- SILC_PUT32_LSB(ret, bin);
-
+ memcpy(bin, (unsigned char *)&ret, 4);
return ret != INADDR_NONE;
}
return ret != INADDR_NONE;
}