From e33a82ff742f85be9b4bd71f46940d086ba5de51 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 2 Apr 2013 15:23:44 +0800 Subject: [PATCH] fix warnings --- src/jconf.c | 1 + src/server.c | 2 +- src/utils.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jconf.c b/src/jconf.c index 3bac630d..ee4cde1b 100644 --- a/src/jconf.c +++ b/src/jconf.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "utils.h" #include "jconf.h" diff --git a/src/server.c b/src/server.c index de909e4e..0998a7c9 100644 --- a/src/server.c +++ b/src/server.c @@ -722,7 +722,7 @@ int main (int argc, char **argv) { // Setup proxy context struct listen_ctx listen_ctx; - listen_ctx.timeout = timeout; + listen_ctx.timeout = atoi(timeout); listen_ctx.fd = listenfd; ev_io_init (&listen_ctx.io, accept_cb, listenfd, EV_READ); diff --git a/src/utils.c b/src/utils.c index b7d98add..2b4d1cd5 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include "utils.h"