diff options
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/common.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net/common.h b/src/net/common.h index 947eee7..dfac2e5 100644 --- a/src/net/common.h +++ b/src/net/common.h @@ -5,7 +5,6 @@ #include <stdio.h> #include <stdlib.h> #include <pthread.h> -#define _GNU_SOURCE #include <string.h> #include <unistd.h> #include <sys/stat.h> @@ -26,9 +25,6 @@ #define HTTP_BUFFER_SIZE 4098 #define max_content_length 200000 -static int ports[65535] = { 0 }; -static parray_t* paths = NULL; - enum file_status { _ignore, BARRIER_READ, FILE_HEADER, FILE_BODY, NORMAL }; @@ -44,6 +40,7 @@ typedef struct { int port; lua_State* L; struct sockaddr_in cli; + parray_t* paths; } thread_arg_struct; struct lchar { |
