mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
add ISC_MAGIC('a','b','c','d') to make specifying magic numbers a bit more
readable
This commit is contained in:
@@ -20,4 +20,8 @@
|
||||
|
||||
#define ISC_MAGIC_VALID(a,b) (((a) != NULL) && ((a)->magic == (b)))
|
||||
|
||||
#define ISC_MAGIC(a, b, c, d) ((unsigned int)(a) << 24 \
|
||||
| (unsigned int)(b) << 16 \
|
||||
| (unsigned int)(c) << 8 | (d))
|
||||
|
||||
#endif /* ISC_MAGIC_H */
|
||||
|
Reference in New Issue
Block a user