From: Richard W.M. Jones Date: Thu, 31 Mar 2011 19:17:02 +0000 (+0100) Subject: examples: size_t-correctness change in inspect_vm.c X-Git-Tag: 1.8.5~12 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b9c70b9ff547731aecccd703e7a254ccdfb2377c;p=libguestfs.git examples: size_t-correctness change in inspect_vm.c (cherry picked from commit d5eb5216aae0cb83fae686f490d1c3c37c2c074e) --- diff --git a/examples/inspect_vm.c b/examples/inspect_vm.c index 327a566..6c45aac 100644 --- a/examples/inspect_vm.c +++ b/examples/inspect_vm.c @@ -11,10 +11,10 @@ compare_keys_len (const void *p1, const void *p2) return strlen (key1) - strlen (key2); } -static int +static size_t count_strings (char *const *argv) { - int c; + size_t c; for (c = 0; argv[c]; ++c) ;