diff options
Diffstat (limited to 'src/config/defaults.c')
-rw-r--r-- | src/config/defaults.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/config/defaults.c b/src/config/defaults.c index 389d84d..69881fb 100644 --- a/src/config/defaults.c +++ b/src/config/defaults.c @@ -2,8 +2,6 @@ #include <stddef.h> -#include <skalibs/uint32.h> - #include <tipidee/log.h> #include "tipidee-config-internal.h" @@ -16,13 +14,13 @@ struct defaults_s #define REC(k, v, n) { .key = (k), .value = (v), .vlen = (n) } #define RECS(k, v) REC(k, v, sizeof(v)) -#define RECU32(k, u) { .key = (k), .value = (char const [4]){ UINT32_BIG(u) >> 24 & 0xffu, UINT32_BIG(u) >> 16 & 0xffu, UINT32_BIG(u) >> 8 & 0xffu, UINT32_BIG(u) & 0xffu }, .vlen = 4 } +#define RECU32(k, u) { .key = (k), .value = (char const [4]){ (u) >> 24 & 0xffu, (u) >> 16 & 0xffu, (u) >> 8 & 0xffu, (u) & 0xffu }, .vlen = 4 } static struct defaults_s const defaults[] = { - RECS("G:read_timeout", "\0\0\0"), - RECS("G:write_timeout", "\0\0\0"), - RECS("G:cgi_timeout", "\0\0\0"), + RECU32("G:read_timeout", 0), + RECU32("G:write_timeout", 0), + RECU32("G:cgi_timeout", 0), RECU32("G:max_request_body_length", 8192), RECU32("G:max_cgi_body_length", 4194304), RECS("G:index_file", "index.html"), |