aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-04-14 18:44:27 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-04-14 18:44:27 +0300
commit34d8674536e81c5d72056f4828e55f5e5ac98898 (patch)
tree751695ccc4fc5304d08a812ab7eca143a463ea2a
parent4f46a13f08c92b365469fd160415d5f0bf1dbf41 (diff)
downloadtallyman-34d8674536e81c5d72056f4828e55f5e5ac98898.tar.gz
tallyman-34d8674536e81c5d72056f4828e55f5e5ac98898.tar.bz2
Add missing includes
-rw-r--r--src/getdefgw.c1
-rw-r--r--src/stevedore.c2
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 : "");

Return to:

Send suggestions and report system problems to the System administrator.