diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-12 11:24:51 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-13 09:28:37 +0000 |
commit | 0fd9a7d4a00d009f6ec5fbaf495241788d2df4be (patch) | |
tree | 812e731c093900f50ba63dde4e49326a35dd8232 /src/guestfs.c | |
parent | 3a2866ef0d865c132134aab1288651789cce0749 (diff) | |
download | libguestfs-0fd9a7d4a00d009f6ec5fbaf495241788d2df4be.tar.gz libguestfs-0fd9a7d4a00d009f6ec5fbaf495241788d2df4be.tar.xz libguestfs-0fd9a7d4a00d009f6ec5fbaf495241788d2df4be.zip |
lib: Use size_t for allocation size in safe realloc function.
(cherry picked from commit b8cdf6c2b9d12df6acbe295fd75c8c59c8b7eec1)
Diffstat (limited to 'src/guestfs.c')
-rw-r--r-- | src/guestfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guestfs.c b/src/guestfs.c index ca6a222d..9b37a250 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -476,7 +476,7 @@ guestfs_safe_calloc (guestfs_h *g, size_t n, size_t s) } void * -guestfs_safe_realloc (guestfs_h *g, void *ptr, int nbytes) +guestfs_safe_realloc (guestfs_h *g, void *ptr, size_t nbytes) { void *p = realloc (ptr, nbytes); if (nbytes > 0 && !p) g->abort_cb (); |