diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-17 14:00:45 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-17 14:00:45 +0000 |
commit | cc60b785f631cda5524b9cb9225e6baa64ebed0b (patch) | |
tree | 313cbfc786ca98d0e8e7012c1ea8e6ac9e1d3ca7 /tools/libxc/xc_tbuf.c | |
parent | d5ae80a5370fbf6bb78b9c75f6f6c6f5b87a61c0 (diff) | |
download | xen-cc60b785f631cda5524b9cb9225e6baa64ebed0b.tar.gz xen-cc60b785f631cda5524b9cb9225e6baa64ebed0b.tar.bz2 xen-cc60b785f631cda5524b9cb9225e6baa64ebed0b.zip |
[LIBXC] Replace API uses of size_t with ulong.
Avoids possibility of different FILE_OFFSET_BITS defn.
across the interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_tbuf.c')
-rw-r--r-- | tools/libxc/xc_tbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xc_tbuf.c b/tools/libxc/xc_tbuf.c index a30d1fb1fc..920c5b5abd 100644 --- a/tools/libxc/xc_tbuf.c +++ b/tools/libxc/xc_tbuf.c @@ -57,7 +57,7 @@ int xc_tbuf_get_size(int xc_handle, unsigned long *size) return rc; } -int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn, +int xc_tbuf_enable(int xc_handle, unsigned long pages, unsigned long *mfn, unsigned long *size) { DECLARE_SYSCTL; @@ -68,7 +68,7 @@ int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn, * set (since trace buffers cannot be reallocated). If we really have no * buffers at all then tbuf_enable() will fail, so this is safe. */ - (void)xc_tbuf_set_size(xc_handle, cnt); + (void)xc_tbuf_set_size(xc_handle, pages); if ( tbuf_enable(xc_handle, 1) != 0 ) return -1; |