summaryrefslogtreecommitdiffstats
path: root/modules/filters
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2024-03-14 15:54:59 +0100
committerYann Ylavic <ylavic@apache.org>2024-03-14 15:54:59 +0100
commit9ef9e5a80e2875bd677f1396818bdf0872c9270d (patch)
treebc098e83baf4a66cdc3f4a82a05ce879cf2e98b6 /modules/filters
parentmod_rewrite: disambiguate select_random_value_part(). (diff)
downloadapache2-9ef9e5a80e2875bd677f1396818bdf0872c9270d.tar.xz
apache2-9ef9e5a80e2875bd677f1396818bdf0872c9270d.zip
mod_crypto: Fix warnings about signed bit fields.
The non-zero value for one bit field is -1: mod_crypto.c|565 col 18| error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] || ctx->encrypt = 1; || ^ ~ mod_crypto.c|746 col 22| error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] || ctx->clength = 1; || ^ ~ mod_crypto.c|903 col 35| error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] || ctx->seen_eos = 1; || ^ ~ mod_crypto.c|960 col 22| error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] || ctx->clength = 1; || ^ ~ Use unsigned bit fields for struct crypto_ctx's members seen_eos, encrypt and clength. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916299 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/filters')
-rw-r--r--modules/filters/mod_crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/filters/mod_crypto.c b/modules/filters/mod_crypto.c
index 2c98692c41..bd383e6808 100644
--- a/modules/filters/mod_crypto.c
+++ b/modules/filters/mod_crypto.c
@@ -108,9 +108,9 @@ typedef struct crypto_ctx
apr_off_t remaining;
apr_off_t written;
apr_size_t osize;
- int seen_eos:1;
- int encrypt:1;
- int clength:1;
+ unsigned int seen_eos :1,
+ encrypt :1,
+ clength :1;
} crypto_ctx;
static const char *parse_pass_conf_binary(cmd_parms *cmd,