From: Ondřej Surý Date: Wed, 6 Nov 2024 17:05:03 +0000 (+0000) Subject: fix: dev: Enforce type checking for dns_dbnode_t X-Git-Tag: v9.21.3~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b47c4f628796720761fc3a84c84fb709f66a1f9;p=thirdparty%2Fbind9.git fix: dev: Enforce type checking for dns_dbnode_t Originally, the dns_dbnode_t was typedef'ed to void type. This allowed some flexibility, but using (void *) just removes any type-checking that C might have. Instead of using: typedef void dns_dbnode_t; use a trick to define the type to non-existing structure: typedef struct dns_dbnode dns_dbnode_t; This allows the C compilers to employ the type-checking while the structure itself doesn't have to be ever defined because the actual 'storage' is never accessed using dns_dbnode_t type. Merge branch 'ondrej/non-void-dns_dbnode_t' into 'main' See merge request isc-projects/bind9!9719 --- 4b47c4f628796720761fc3a84c84fb709f66a1f9