78f75f4c1c
I know I sent these to Weitse the first time I built on an Alpha, but they apparently never made it into the distribution. Oh well.
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
$NetBSD: patch-bo,v 1.1 1999/08/18 23:30:26 thorpej Exp $
|
|
|
|
--- master/single_server.c.orig Tue Aug 17 17:36:40 1999
|
|
+++ master/single_server.c Tue Aug 17 17:37:06 1999
|
|
@@ -241,7 +241,7 @@
|
|
|
|
static void single_server_accept_local(int unused_event, char *context)
|
|
{
|
|
- int listen_fd = (int) context;
|
|
+ int listen_fd = (int) (long) context;
|
|
int time_left = -1;
|
|
int fd;
|
|
|
|
@@ -280,7 +280,7 @@
|
|
|
|
static void single_server_accept_inet(int unused_event, char *context)
|
|
{
|
|
- int listen_fd = (int) context;
|
|
+ int listen_fd = (int) (long) context;
|
|
int time_left = -1;
|
|
int fd;
|
|
|
|
@@ -549,7 +549,7 @@
|
|
if (var_idle_limit > 0)
|
|
event_request_timer(single_server_timeout, (char *) 0, var_idle_limit);
|
|
for (fd = MASTER_LISTEN_FD; fd < MASTER_LISTEN_FD + socket_count; fd++) {
|
|
- event_enable_read(fd, single_server_accept, (char *) fd);
|
|
+ event_enable_read(fd, single_server_accept, (char *) (long) fd);
|
|
close_on_exec(fd, CLOSE_ON_EXEC);
|
|
}
|
|
event_enable_read(MASTER_STATUS_FD, single_server_abort, (char *) 0);
|