]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
memalloc: ctassert malloc header size
authorAntti Kantee <pooka@iki.fi>
Wed, 4 Nov 2015 01:58:14 +0000 (01:58 +0000)
committerAntti Kantee <pooka@iki.fi>
Wed, 4 Nov 2015 01:58:14 +0000 (01:58 +0000)
lib/libbmk_core/memalloc.c

index ac5a6f2a37d494f67fcd3576353234ddd1b4fb71..1df8c4082b77851ea9ee7d3b7fc1e1a5fa352851 100644 (file)
@@ -64,6 +64,7 @@ struct memalloc_hdr {
        uint8_t         mh_index;       /* bucket # */
        uint8_t         mh_who;         /* who allocated */
 };
+bmk_ctassert(sizeof(struct memalloc_hdr) == 8);
 
 struct memalloc_freeblk {
        LIST_ENTRY(memalloc_freeblk) entries;