mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
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:
parent
de03d20958
commit
b307616f3d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user