summaryrefslogtreecommitdiffstats
path: root/inspector
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-13 08:23:56 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-13 08:23:56 +0000
commitf76a88011a993d059beafe090a21a20be1cb9f4d (patch)
tree4fb7d5802ec2dc03912660a041a1b3166c1a8a2d /inspector
parent14df5fa5d1731a502332e9d4a41f54ee3d4a4dac (diff)
downloadlibguestfs-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 'inspector')
-rw-r--r--inspector/virt-inspector.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/inspector/virt-inspector.c b/inspector/virt-inspector.c
index 269e51d1..103a61ef 100644
--- a/inspector/virt-inspector.c
+++ b/inspector/virt-inspector.c
@@ -62,7 +62,7 @@ static void output_drive_mappings (xmlTextWriterPtr xo, char *root);
static void output_applications (xmlTextWriterPtr xo, char *root);
static void canonicalize (char *dev);
static void free_strings (char **argv);
-static int count_strings (char *const*argv);
+static size_t count_strings (char *const*argv);
static void do_xpath (const char *query);
static inline char *
@@ -790,17 +790,17 @@ canonicalize (char *dev)
static void
free_strings (char **argv)
{
- int argc;
+ size_t argc;
for (argc = 0; argv[argc] != NULL; ++argc)
free (argv[argc]);
free (argv);
}
-static int
+static size_t
count_strings (char *const *argv)
{
- int c;
+ size_t c;
for (c = 0; argv[c]; ++c)
;