Use long, not time_t as timeout.
This commit is contained in:
parent
dc69111e84
commit
5b0e93d84c
|
|
@ -71,7 +71,7 @@ extern time_t cur_time;
|
|||
extern int shutdowning;
|
||||
RETSIGTYPE server_interrupt (int signum);
|
||||
RETSIGTYPE server_dump (int signum);
|
||||
int server_loop (int fd,time_t timeout);
|
||||
int server_loop (int fd,long timeout);
|
||||
int server_reply (struct sockaddr_in *, UBUF *, unsigned int, unsigned int);
|
||||
void serve_file (struct sockaddr_in *, UBUF *, FILE *, unsigned int,
|
||||
unsigned char *);
|
||||
|
|
|
|||
|
|
@ -152,13 +152,15 @@ static void send_error (struct sockaddr_in * from, UBUF * ub, const char * msg)
|
|||
}
|
||||
|
||||
/****************************************************************************
|
||||
* This is the message filter. It is called by main with a timeout value.
|
||||
* This is the message filter. It is called by main with a timeout value in
|
||||
* milliseconds.
|
||||
*
|
||||
* If timeout is -1, it will never time out. Otherwise, it waits for a
|
||||
* message. If timed out, it returns. Otherwise it pass it through checks.
|
||||
* Those message that passed get sent to the dispatch loop.
|
||||
****************************************************************************/
|
||||
|
||||
int server_loop (int fd, time_t timeout)
|
||||
int server_loop (int fd, long timeout)
|
||||
{
|
||||
HTAB *hp;
|
||||
const char *ir;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user