X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/0b06de8105dd567cb2d120770b2101afacce5f33..refs/heads/remove-warnings:/l2tpns.h?ds=sidebyside diff --git a/l2tpns.h b/l2tpns.h index f226380..f38e9f3 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -242,7 +242,10 @@ typedef struct controls // control message { struct controls *next; // next in queue uint16_t length; // length - uint8_t buf[MAXCONTROL]; + union { + uint8_t buf[MAXCONTROL]; + uint16_t buf16[MAXCONTROL/2]; + } __attribute__ ((__transparent_union__)); } controlt;