From: Antti Kantee Date: Mon, 2 Nov 2015 23:51:18 +0000 (+0000) Subject: use constant width types X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=475dcc58681ca5ff60532ee0e40dc7aeaeb2b589;p=osstest%2Frumprun.git use constant width types --- diff --git a/lib/libbmk_core/memalloc.c b/lib/libbmk_core/memalloc.c index 91ccdb4..dac9e6d 100644 --- a/lib/libbmk_core/memalloc.c +++ b/lib/libbmk_core/memalloc.c @@ -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;