aboutsummaryrefslogtreecommitdiff
path: root/src/lib/conf
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-15 18:42:01 -0500
committerNick Mathewson <nickm@torproject.org>2019-12-19 07:54:56 -0500
commit419ba97df5bd168bf773478270c0043f20328e15 (patch)
tree82384c15d68861dbf7193fcd7d9d421dc329308d /src/lib/conf
parent9082a6db3f31c768ba862ed22f0824e99b4e0e22 (diff)
downloadtor-419ba97df5bd168bf773478270c0043f20328e15.tar.gz
tor-419ba97df5bd168bf773478270c0043f20328e15.zip
Allow struct_magic to be disabled.
When a subsystem is disabled, there will be no corresponding object allocated, and no magic numbers on it.
Diffstat (limited to 'src/lib/conf')
-rw-r--r--src/lib/conf/conftypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/conf/conftypes.h b/src/lib/conf/conftypes.h
index 44171068a1..52f9fceb20 100644
--- a/src/lib/conf/conftypes.h
+++ b/src/lib/conf/conftypes.h
@@ -131,6 +131,9 @@ typedef struct struct_member_t {
*
* These 'magic numbers' are 32-bit values used to tag objects to make sure
* that they have the correct type.
+ *
+ * If all fields in this structure are zero or 0, the magic-number check is
+ * not performed.
*/
typedef struct struct_magic_decl_t {
/** The name of the structure */