summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/serverloop.c b/serverloop.c
index 1e211701e..87e619fe4 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: serverloop.c,v 1.185 2016/08/13 17:47:41 markus Exp $ */ 1/* $OpenBSD: serverloop.c,v 1.186 2016/09/12 01:22:38 deraadt Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -37,7 +37,6 @@
37 37
38#include "includes.h" 38#include "includes.h"
39 39
40#include <sys/param.h> /* MIN MAX */
41#include <sys/types.h> 40#include <sys/types.h>
42#include <sys/wait.h> 41#include <sys/wait.h>
43#include <sys/socket.h> 42#include <sys/socket.h>
@@ -212,7 +211,7 @@ wait_until_can_do_something(int connection_in, int connection_out,
212 211
213 /* XXX need proper deadline system for rekey/client alive */ 212 /* XXX need proper deadline system for rekey/client alive */
214 if (minwait_secs != 0) 213 if (minwait_secs != 0)
215 max_time_ms = MIN(max_time_ms, (u_int)minwait_secs * 1000); 214 max_time_ms = MINIMUM(max_time_ms, (u_int)minwait_secs * 1000);
216 215
217 /* 216 /*
218 * if using client_alive, set the max timeout accordingly, 217 * if using client_alive, set the max timeout accordingly,
@@ -372,8 +371,8 @@ server_loop2(Authctxt *authctxt)
372 371
373 notify_setup(); 372 notify_setup();
374 373
375 max_fd = MAX(connection_in, connection_out); 374 max_fd = MAXIMUM(connection_in, connection_out);
376 max_fd = MAX(max_fd, notify_pipe[0]); 375 max_fd = MAXIMUM(max_fd, notify_pipe[0]);
377 376
378 server_init_dispatch(); 377 server_init_dispatch();
379 378