INN commit: trunk/include/inn (dbz.h)
INN Commit
rra at isc.org
Tue May 21 18:32:36 UTC 2013
Date: Tuesday, May 21, 2013 @ 11:32:35
Author: iulius
Revision: 9471
add a comment to remember why PACKED is needed
Modified:
trunk/include/inn/dbz.h
-------+
dbz.h | 4 ++++
1 file changed, 4 insertions(+)
Modified: dbz.h
===================================================================
--- dbz.h 2013-05-20 16:34:54 UTC (rev 9470)
+++ dbz.h 2013-05-21 18:32:35 UTC (rev 9471)
@@ -49,6 +49,10 @@
#if !defined(lint) && (defined(__SUNPRO_C) || defined(_nec_ews))
#pragma pack(1)
#endif /* nor lint, nor __SUNPRO_C, nor sgi, nor _nec_ews */
+/* Leave the PACKED on there because removing it might change the layout of
+ * the data structure on disk on some platform, thus invalidating old history
+ * files. It is fairly unlikely that this is a problem, though.
+ */
typedef struct {
char hash[DBZ_INTERNAL_HASH_SIZE];
} PACKED erec;
More information about the inn-committers
mailing list