aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xs_tdb_dump.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-12 11:07:37 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-12 11:07:37 +0100
commitd8263e8dbaf5ef1445bee0662143a0fcb6d43466 (patch)
tree9f12854f6cced9647fda399d756f23a47fcc6c97 /tools/xenstore/xs_tdb_dump.c
parente2c103e4851e41622adfe762ab34f7518f8c371e (diff)
downloadxen-d8263e8dbaf5ef1445bee0662143a0fcb6d43466.tar.gz
xen-d8263e8dbaf5ef1445bee0662143a0fcb6d43466.tar.bz2
xen-d8263e8dbaf5ef1445bee0662143a0fcb6d43466.zip
Fix Xen public interfaces and the tools to consistently
use stdint-format bitsize types (uint32_t and friends). Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstore/xs_tdb_dump.c')
-rw-r--r--tools/xenstore/xs_tdb_dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/xenstore/xs_tdb_dump.c b/tools/xenstore/xs_tdb_dump.c
index f7e54fbe75..5f1382f41b 100644
--- a/tools/xenstore/xs_tdb_dump.c
+++ b/tools/xenstore/xs_tdb_dump.c
@@ -11,13 +11,13 @@
#include "utils.h"
struct record_hdr {
- u32 num_perms;
- u32 datalen;
- u32 childlen;
+ uint32_t num_perms;
+ uint32_t datalen;
+ uint32_t childlen;
struct xs_permissions perms[0];
};
-static u32 total_size(struct record_hdr *hdr)
+static uint32_t total_size(struct record_hdr *hdr)
{
return sizeof(*hdr) + hdr->num_perms * sizeof(struct xs_permissions)
+ hdr->datalen + hdr->childlen;