fix warnings

This commit is contained in:
Max Lv
2013-04-02 15:23:44 +08:00
parent 5419230004
commit e33a82ff74
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include "utils.h"
#include "jconf.h"
+1 -1
View File
@@ -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);
+2
View File
@@ -1,6 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "utils.h"