#include "silcincludes.h"
+#ifndef WIN32
#ifdef HAVE_GETSID
extern pid_t getsid (pid_t __pid);
#endif
#ifdef HAVE_GETPGID
extern pid_t getpgid (pid_t __pid);
#endif
+#endif
#undef SILC_RNG_DEBUG
/*#define SILC_RNG_DEBUG*/
/* Converts the IP number string from numbers-and-dots notation to
binary form. */
-bool silc_net_addr2bin(const char *addr, void *bin, uint32 bin_len);
+bool silc_net_addr2bin(const char *addr, void *bin, uint32 bin_len)
{
unsigned long ret;
if (bin_len < 4)
return FALSE;
- memcpy(bin, (unsigned char *)&tmp.s_addr, 4);
+ memcpy(bin, (unsigned char *)&ret, 4);
return ret != INADDR_NONE;
}
silc_sftp_fs_memory_del_dir @ 820 ;
silc_sftp_fs_memory_add_file @ 821 ;
silc_sftp_fs_memory_del_file @ 822 ;
- silc_net_addr2bin_ne @ 823 ;
silc_file_open @ 824 ;
silc_file_close @ 825 ;
silc_file_read @ 826 ;