diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-13 08:23:56 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-13 08:23:56 +0000 |
commit | f76a88011a993d059beafe090a21a20be1cb9f4d (patch) | |
tree | 4fb7d5802ec2dc03912660a041a1b3166c1a8a2d /daemon/proto.c | |
parent | 14df5fa5d1731a502332e9d4a41f54ee3d4a4dac (diff) | |
download | libguestfs-f76a88011a993d059beafe090a21a20be1cb9f4d.tar.gz libguestfs-f76a88011a993d059beafe090a21a20be1cb9f4d.tar.xz libguestfs-f76a88011a993d059beafe090a21a20be1cb9f4d.zip |
Replace 'int' with 'size_t' passim.
Analyze all uses of 'int' in the code, and replace with 'size_t' where
appropriate.
Diffstat (limited to 'daemon/proto.c')
-rw-r--r-- | daemon/proto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/proto.c b/daemon/proto.c index ac62a6be..4bbe8f87 100644 --- a/daemon/proto.c +++ b/daemon/proto.c @@ -71,7 +71,7 @@ static struct timeval start_t; static struct timeval last_progress_t; /* Counts the number of progress notifications sent during this call. */ -static int count_progress; +static size_t count_progress; /* The daemon communications socket. */ static int sock; @@ -477,13 +477,13 @@ static int send_chunk (const guestfs_chunk *); /* Also check if the library sends us a cancellation message. */ int -send_file_write (const void *buf, int len) +send_file_write (const void *buf, size_t len) { guestfs_chunk chunk; int cancel; if (len > GUESTFS_MAX_CHUNK_SIZE) { - fprintf (stderr, "guestfsd: send_file_write: len (%d) > GUESTFS_MAX_CHUNK_SIZE (%d)\n", + fprintf (stderr, "guestfsd: send_file_write: len (%zu) > GUESTFS_MAX_CHUNK_SIZE (%d)\n", len, GUESTFS_MAX_CHUNK_SIZE); return -1; } |