From a3c1ecc0bfd6c6cb30aba58d7e24e9aa786f780c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 15 Dec 2022 17:53:49 +0100 Subject: [PATCH] Refactor uri.h --- src/lib/uri.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/uri.h b/src/lib/uri.h index 6cba1c3..9890653 100644 --- a/src/lib/uri.h +++ b/src/lib/uri.h @@ -16,7 +16,7 @@ #define URI_DIR_MODE_LIST 2 #define URI_DIR_MODE_INFO 3 -#define URI_ETAG_SIZE 64 // SHA256 hex len +#define URI_ETAG_SIZE 64 // SHA256 size (hex) #define URI_TYPE_SIZE 64 #define URI_CHARSET_SIZE 16 @@ -38,8 +38,8 @@ typedef struct { char *filename; // "/account/index.php" char *uri; // "/account/login?username=test" meta_data *meta; - unsigned char is_static:1; - unsigned char is_dir:1; + unsigned int is_static:1; + unsigned int is_dir:1; } http_uri;