diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-04-14 18:44:27 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-04-14 18:44:27 +0300 |
commit | 34d8674536e81c5d72056f4828e55f5e5ac98898 (patch) | |
tree | 751695ccc4fc5304d08a812ab7eca143a463ea2a | |
parent | 4f46a13f08c92b365469fd160415d5f0bf1dbf41 (diff) | |
download | tallyman-34d8674536e81c5d72056f4828e55f5e5ac98898.tar.gz tallyman-34d8674536e81c5d72056f4828e55f5e5ac98898.tar.bz2 |
Add missing includes
-rw-r--r-- | src/getdefgw.c | 1 | ||||
-rw-r--r-- | src/stevedore.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/getdefgw.c b/src/getdefgw.c index 8f9ad65..06b86b5 100644 --- a/src/getdefgw.c +++ b/src/getdefgw.c @@ -11,6 +11,7 @@ There is NO WARRANTY, to the extent permitted by law. #include <arpa/inet.h> #include <unistd.h> #include <net/if.h> +#include <sys/time.h> #include <limits.h> #include <errno.h> diff --git a/src/stevedore.c b/src/stevedore.c index c39db5c..ac95689 100644 --- a/src/stevedore.c +++ b/src/stevedore.c @@ -301,7 +301,7 @@ http_log(struct MHD_Connection *connection, else str = NULL; - info("%s %s - - %s \"%s %s\" \"%s\" %3d \"%s\" \"%s\"", + info("%s %s - - %s \"%s %s\" \"%.1024s\" %3d \"%s\" \"%s\"", host, ipstr, tbuf, method, url, str ? str : "", status, referer ? referer : "", user_agent ? user_agent : ""); |