[master] 9939e2b9b param: Give a typedef to bits parameters
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Nov 13 11:11:15 UTC 2020
commit 9939e2b9b8f40ecf4773eb1a8e122cdff7b55c36
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Thu Oct 22 07:56:04 2020 +0200
param: Give a typedef to bits parameters
A nice and tidy single token to integrate with the parameters table.
Refs #3250
diff --git a/bin/varnishd/common/common_param.h b/bin/varnishd/common/common_param.h
index fd4cfc0fd..e11967a2a 100644
--- a/bin/varnishd/common/common_param.h
+++ b/bin/varnishd/common/common_param.h
@@ -71,6 +71,11 @@ struct poolparam {
double max_age;
};
+
+typedef uint8_t vsl_mask_t[256>>3];
+typedef uint8_t debug_t[(DBG_Reserved+7)>>3];
+typedef uint8_t feature_t[(FEATURE_Reserved+7)>>3];
+
struct params {
#define ptyp_bool unsigned
@@ -105,7 +110,7 @@ struct params {
struct vre_limits vre_limits;
- uint8_t vsl_mask[256>>3];
- uint8_t debug_bits[(DBG_Reserved+7)>>3];
- uint8_t feature_bits[(FEATURE_Reserved+7)>>3];
+ vsl_mask_t vsl_mask;
+ debug_t debug_bits;
+ feature_t feature_bits;
};
More information about the varnish-commit
mailing list