Selaa lähdekoodia

Merge pull request #693 from sjthomason/fix-cfg-block-alignment

core: ensure cfg_block structure is 8 byte aligned
Daniel-Constantin Mierla 9 vuotta sitten
vanhempi
commit
261c8a8197
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      cfg/cfg_struct.h

+ 1 - 0
cfg/cfg_struct.h

@@ -129,6 +129,7 @@ typedef struct _cfg_block {
 	atomic_t	refcnt;		/*!< reference counter,
 					the block is automatically deleted
 					when it reaches 0 */
+	int		_pad;		/*!< force 8 byte alignment */
 	unsigned char	vars[1];	/*!< blob that contains the values */
 } cfg_block_t;