typedef struct joblist_s {
struct joblist_s *next;
- int sock;
+ SOCKET sock;
} joblist;
typedef struct globals_s {
#define MAX_SELECT_ERRORS 100
-static void add_job(int sock)
+static void add_job(SOCKET sock)
{
joblist *new_job;
}
-static int remove_job(void)
+static SOCKET remove_job(void)
{
joblist *job;
- int sock;
+ SOCKET sock;
WaitForSingleObject(allowed_globals.jobsemaphore, INFINITE);
apr_thread_mutex_lock(allowed_globals.jobmutex);
struct timeval tv;
fd_set main_fds;
int wait_time = 1;
- int csd;
+ SOCKET csd;
SOCKET nsd = INVALID_SOCKET;
int count_select_errors = 0;
int rc;
tv.tv_usec = 0;
memcpy(&main_fds, &listenfds, sizeof(fd_set));
- rc = select(listenmaxfd + 1, &main_fds, NULL, NULL, &tv);
+ rc = select((int)(listenmaxfd + 1), &main_fds, NULL, NULL, &tv);
if (rc == 0 || (rc == SOCKET_ERROR && APR_STATUS_IS_EINTR(apr_get_netos_error()))) {
count_select_errors = 0; /* reset count of errors */