Fix some GCC warnings.

Pointed out by: Brian Lewis <bsl04@uark.edu>
Pointed out on: Wed, 27 Sep 2006 15:46:26 -0500
This commit is contained in:
Emil Mikulic 2006-12-13 07:16:38 +00:00
parent de03d20958
commit b307616f3d
1 changed files with 4 additions and 3 deletions

View File

@ -1861,7 +1861,8 @@ static void process_get(struct connection *conn)
to = conn->range_end;
/* clamp [to] to filestat.st_size-1 */
if (to > (filestat.st_size-1)) to = filestat.st_size-1;
if (to > (size_t)(filestat.st_size-1))
to = filestat.st_size-1;
}
else if (conn->range_begin_given && !conn->range_end_given)
{
@ -2310,7 +2311,7 @@ static void httpd_poll(void)
static int lifeline[2] = { -1, -1 };
static int fd_null = -1;
void
static void
daemonize_start(void)
{
pid_t f, w;
@ -2346,7 +2347,7 @@ daemonize_start(void)
/* else we are the child: continue initializing */
}
void
static void
daemonize_finish(void)
{
if (fd_null == -1)