examples: size_t-correctness change in inspect_vm.c
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 31 Mar 2011 19:17:02 +0000 (20:17 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 31 Mar 2011 19:17:02 +0000 (20:17 +0100)
examples/inspect_vm.c

index 327a566..6c45aac 100644 (file)
@@ -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)
     ;