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/file.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/file.c')
-rw-r--r-- | daemon/file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/file.c b/daemon/file.c index 161ea31e..ef7b50c0 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -89,7 +89,8 @@ char * do_cat (const char *path) { int fd; - int alloc, size, r, max; + size_t alloc, size, max; + ssize_t r; char *buf, *buf2; CHROOT_IN; @@ -671,7 +672,7 @@ do_file (const char *path) char * do_zfile (const char *method, const char *path) { - int len; + size_t len; const char *zcat; char *cmd; FILE *fp; |