From db2eb09f58c6ab9e4657989f8b766feefd1871a7 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 9 May 2007 19:47:17 +0000 Subject: [PATCH] Removed silc_net_win32_[init|uninit]. --- lib/silcutil/silcnet.c | 2 +- lib/silcutil/silcnet.h | 43 ------------------------------------------ 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/lib/silcutil/silcnet.c b/lib/silcutil/silcnet.c index 66de46e0..7fd76a4a 100644 --- a/lib/silcutil/silcnet.c +++ b/lib/silcutil/silcnet.c @@ -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; diff --git a/lib/silcutil/silcnet.h b/lib/silcutil/silcnet.h index 94b76220..ce4cdcc6 100644 --- a/lib/silcutil/silcnet.h +++ b/lib/silcutil/silcnet.h @@ -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 */ -- 2.24.0