mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
fssync-abstract-fd-type-20090316
LICENSE IPL10 apparently 64 bit windows has 64 bit fds
This commit is contained in:
parent
7815171a8d
commit
3eec407510
@ -124,7 +124,7 @@ static SYNC_server_state_t fssync_server_state =
|
|||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
static void * FSYNC_sync(void *);
|
static void * FSYNC_sync(void *);
|
||||||
static void FSYNC_newconnection(int afd);
|
static void FSYNC_newconnection(osi_socket afd);
|
||||||
static void FSYNC_com(int fd);
|
static void FSYNC_com(int fd);
|
||||||
static void FSYNC_Drop(int fd);
|
static void FSYNC_Drop(int fd);
|
||||||
static void AcceptOn(void);
|
static void AcceptOn(void);
|
||||||
@ -298,14 +298,14 @@ FSYNC_sync(void * args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
FSYNC_newconnection(int afd)
|
FSYNC_newconnection(osi_socket afd)
|
||||||
{
|
{
|
||||||
#ifdef USE_UNIX_SOCKETS
|
#ifdef USE_UNIX_SOCKETS
|
||||||
struct sockaddr_un other;
|
struct sockaddr_un other;
|
||||||
#else /* USE_UNIX_SOCKETS */
|
#else /* USE_UNIX_SOCKETS */
|
||||||
struct sockaddr_in other;
|
struct sockaddr_in other;
|
||||||
#endif
|
#endif
|
||||||
int fd;
|
osi_socket fd;
|
||||||
socklen_t junk;
|
socklen_t junk;
|
||||||
junk = sizeof(other);
|
junk = sizeof(other);
|
||||||
fd = accept(afd, (struct sockaddr *)&other, &junk);
|
fd = accept(afd, (struct sockaddr *)&other, &junk);
|
||||||
|
Loading…
Reference in New Issue
Block a user