]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
use constant width types
authorAntti Kantee <pooka@iki.fi>
Mon, 2 Nov 2015 23:51:18 +0000 (23:51 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 2 Nov 2015 23:51:18 +0000 (23:51 +0000)
lib/libbmk_core/memalloc.c

index 91ccdb4e12b03431296f9d5acb342640babe63cc..dac9e6d3204b8346d9d3dde06d3a92d3b7c3303b 100644 (file)
@@ -65,14 +65,14 @@ union       overhead {
        union   overhead *ov_next;      /* when free */
        struct {
                unsigned long   ovu_alignpad;   /* padding for alignment */
-               unsigned char   ovu_magic;      /* magic number */
-               unsigned char   ovu_index;      /* bucket # */
+               uint8_t         ovu_magic;      /* magic number */
+               uint8_t         ovu_index;      /* bucket # */
 
                /* this will be put under RCHECK later */
-               unsigned short  ovu_who;        /* who allocated */
+               uint16_t        ovu_who;        /* who allocated */
 
 #ifdef RCHECK
-               unsigned short  ovu_rmagic;     /* range magic number */
+               uint16_t        ovu_rmagic;     /* range magic number */
                unsigned long   ovu_size;       /* actual block size */
 #endif
        } ovu;