[sr-dev] git:master:261c8a81: Merge pull request #693 from sjthomason/fix-cfg-block-alignment

GitHub noreply at github.com
Mon Jul 4 09:41:27 CEST 2016


Module: kamailio
Branch: master
Commit: 261c8a81974dba18881b50178511e4fa0c33f61c
URL: https://github.com/kamailio/kamailio/commit/261c8a81974dba18881b50178511e4fa0c33f61c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2016-07-04T09:41:20+02:00

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

core: ensure cfg_block structure is 8 byte aligned

---

Modified: cfg/cfg_struct.h

---

Diff:  https://github.com/kamailio/kamailio/commit/261c8a81974dba18881b50178511e4fa0c33f61c.diff
Patch: https://github.com/kamailio/kamailio/commit/261c8a81974dba18881b50178511e4fa0c33f61c.patch

---

diff --git a/cfg/cfg_struct.h b/cfg/cfg_struct.h
index 452bb90..6436eed 100644
--- a/cfg/cfg_struct.h
+++ b/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;
 




More information about the sr-dev mailing list