Removed silc_net_win32_[init|uninit].
authorPekka Riikonen <priikone@silcnet.org>
Wed, 9 May 2007 19:47:17 +0000 (19:47 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 9 May 2007 19:47:17 +0000 (19:47 +0000)
lib/silcutil/silcnet.c
lib/silcutil/silcnet.h

index 66de46e06148db768cc1c35b55b97e4ade0094d5..7fd76a4a3088db1a5a54e2021ccce8214f0253a1 100644 (file)
@@ -333,7 +333,7 @@ SilcBool silc_net_gethostbyaddr(const char *addr, char *name,
   freeaddrinfo(ai);
 #else
   struct hostent *hp;
-  unsigned char a[16];
+  unsigned char a[4];
 
   if (!silc_net_addr2bin(addr, a, sizeof(a)))
     return FALSE;
index 94b76220b43749e5be571a6ec76d0bd0fb010234..ce4cdcc62d3561974cd2b5a43e85e8e816b3aa09 100644 (file)
@@ -675,49 +675,6 @@ char *silc_net_localhost(void);
  ***/
 char *silc_net_localip(void);
 
-/****f* silcutil/SilcNetAPI/silc_net_win32_init
- *
- * SYNOPSIS
- *
- *    SilcBool silc_net_win32_init(void);
- *
- * DESCRIPTION
- *
- *    This is WIN32 system specific function and is used to initialize
- *    the network.  This must be called by all WIN32 applications.  It
- *    is usually called at the application's main() or WinMain() before
- *    calling any other SILC routine.  The application must also call
- *    the silc_net_win32_uninit when exiting the application.  Returns
- *    FALSE on error.  The network will not work if this function returns
- *    FALSE.
- *
- * NOTES
- *
- *    This routines is available only on Win32 platform.
- *
- ***/
-SilcBool silc_net_win32_init(void);
-
-/****f* silcutil/SilcNetAPI/silc_net_win32_uninit
- *
- * SYNOPSIS
- *
- *    void silc_net_win32_init(void);
- *
- * DESCRIPTION
- *
- *    This is WIN32 system specific function and is used to uninitialize
- *    the network.  This must be called by all WIN32 applications.  It
- *    is usually called when the application is exiting.  After calling
- *    this function the SILC Net API routines will not work anymore.
- *
- * NOTES
- *
- *    This routines is available only on Win32 platform.
- *
- ***/
-void silc_net_win32_uninit(void);
-
 #include "silcnet_i.h"
 
 #endif /* SILCNET_H */