[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: plibc: win32 related, socke
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: plibc: win32 related, socket |
Date: |
Mon, 09 Sep 2019 12:21:19 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 0a715a462 plibc: win32 related, socket
0a715a462 is described below
commit 0a715a462813496e7a1a03fd072a34eeb3c9e412
Author: ng0 <address@hidden>
AuthorDate: Mon Sep 9 10:19:12 2019 +0000
plibc: win32 related, socket
---
src/transport/tcp_service_legacy.c | 2 +-
src/util/network.c | 10 +++++-----
src/util/service.c | 2 +-
src/util/win.c | 8 ++++----
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/transport/tcp_service_legacy.c
b/src/transport/tcp_service_legacy.c
index 3bb08c0e8..f1821a17b 100644
--- a/src/transport/tcp_service_legacy.c
+++ b/src/transport/tcp_service_legacy.c
@@ -895,7 +895,7 @@ receive_sockets_from_parent(struct LEGACY_SERVICE_Context
*sctx)
{
WSAPROTOCOL_INFOA pi;
uint64_t size;
- SOCKET s;
+ socket s;
ret = ReadFile(lsocks_pipe, &size, sizeof(size), &rd, NULL);
if ((0 == ret) || (sizeof(size) != rd) || (sizeof(pi) != size))
diff --git a/src/util/network.c b/src/util/network.c
index 9eff6b96e..7a1d27f0e 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -47,7 +47,7 @@ struct GNUNET_NETWORK_Handle {
#ifndef MINGW
int fd;
#else
- SOCKET fd;
+ _win_socket fd;
#endif
/**
@@ -1608,7 +1608,7 @@ struct _select_params {
/**
* FIXME.
*/
- SOCKET wakeup_socket;
+ _win_socket wakeup_socket;
/**
* Set to return value from select.
@@ -1660,9 +1660,9 @@ static HANDLE select_finished_event;
static HANDLE select_standby_event;
-static SOCKET select_wakeup_socket = -1;
+static _win_socket select_wakeup_socket = -1;
-static SOCKET select_send_socket = -1;
+static _win_socket select_send_socket = -1;
static struct timeval select_timeout;
@@ -1675,7 +1675,7 @@ static struct timeval select_timeout;
static void
initialize_select_thread()
{
- SOCKET select_listening_socket = -1;
+ _win_socket select_listening_socket = -1;
struct sockaddr_in s_in;
int alen;
int res;
diff --git a/src/util/service.c b/src/util/service.c
index 089d3ef35..75094e028 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -1400,7 +1400,7 @@ receive_sockets_from_parent(struct GNUNET_SERVICE_Handle
*sh)
{
WSAPROTOCOL_INFOA pi;
uint64_t size;
- SOCKET s;
+ _win_socket s;
ret = ReadFile(lsocks_pipe, &size, sizeof(size), &rd, NULL);
if ((0 == ret) || (sizeof(size) != rd) || (sizeof(pi) != size))
diff --git a/src/util/win.c b/src/util/win.c
index 39b276a6c..a2b0d08da 100644
--- a/src/util/win.c
+++ b/src/util/win.c
@@ -218,7 +218,7 @@ _IP_ADAPTER_ADDRESSES_DEFINE(_VISTA,
_IP_ADAPTER_ADDRESSES_ADD_VISTA)
_IP_ADAPTER_ADDRESSES_DEFINE(_2008_OR_VISTASP1,
_IP_ADAPTER_ADDRESSES_ADD_2008_OR_VISTASP1)
static int
-EnumNICs_IPv6_get_ifs_count(SOCKET s)
+EnumNICs_IPv6_get_ifs_count(_win_socket s)
{
DWORD dwret = 0, err;
int iret;
@@ -234,7 +234,7 @@ EnumNICs_IPv6_get_ifs_count(SOCKET s)
}
static int
-EnumNICs_IPv6_get_ifs(SOCKET s, SOCKET_ADDRESS_LIST *inf, int size)
+EnumNICs_IPv6_get_ifs(_win_socket s, SOCKET_ADDRESS_LIST *inf, int size)
{
int iret;
DWORD dwret = 0;
@@ -303,8 +303,8 @@ int
EnumNICs2(INTERFACE_INFO **ifs4, int *ifs4_len, SOCKET_ADDRESS_LIST **ifs6)
{
int result = 0;
- SOCKET s4;
- SOCKET s6;
+ _win_socket s4;
+ _win_socket s6;
int ifs4len = 0;
int ifs6len = 0;
INTERFACE_INFO *interfaces4 = NULL;
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: plibc: win32 related, socket,
gnunet <=