changeset 500:25fc4ab342d3

Add a comment about struct aliasing.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 26 Dec 2019 04:17:00 +0200
parents 836e16f27b34
children d42574b3dc00
files th_config.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/th_config.h	Wed Dec 25 11:42:43 2019 +0200
+++ b/th_config.h	Thu Dec 26 04:17:00 2019 +0200
@@ -37,6 +37,8 @@
 
 typedef struct _th_cfgitem_t
 {
+    // th_llist_t must be the first item, as this
+    // is used to alias th_cfgitem_t to llist nodes
     th_llist_t node;
 
     int  type;