Skip to content

Commit

Permalink
Fixed compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 1, 2008
1 parent e4796d7 commit 8ed00b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nph-offload.c
Expand Up @@ -1616,7 +1616,7 @@ static const char *readClientHeaders(const int fd, const struct sockaddr *addr)
} // readClientHeaders


static inline int daemonChild(const int fd, const struct sockaddr *addr)
static inline void daemonChild(const int fd, const struct sockaddr *addr)
{
if (fd == 0)
dup2(fd, 1);
Expand Down Expand Up @@ -1726,7 +1726,8 @@ static inline int daemonMainline(int argc, char **argv, char **envp)
else
{
close(fd);
return daemonChild(newfd, &addr);
daemonChild(newfd, &addr);
terminate(); // just in case.
} // else
} // if
} // while
Expand Down

0 comments on commit 8ed00b9

Please sign in to comment.