]> err.no Git - dpkg/commitdiff
libdpkg: Use size_t intead of int for the index to fix a warning
authorGuillem Jover <guillem@debian.org>
Sun, 1 Jun 2008 18:11:15 +0000 (21:11 +0300)
committerGuillem Jover <guillem@debian.org>
Sun, 1 Jun 2008 18:11:15 +0000 (21:11 +0300)
ChangeLog
lib/subproc.c

index 43a6ec913ce2aca11a4a91f9007877cb516d11ed..98d7fd390bf86caa161168296fb639f656a69a17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-01  Guillem Jover  <guillem@debian.org>
+
+       * lib/subproc.c (setup_subproc_signals): Use size_t intead of int
+       for the index, to fix a warning.
+       (cu_subproc_signals): Likewise.
+
 2008-06-01  Guillem Jover  <guillem@debian.org>
 
        * src/query.c (searchfiles): Use strpbrk instead of strcspn and
index 85a9162b0d06e1b212759137b28f157c3ebe63c6..944bbd75ada89bedbc84ceea2bb33d2314046a01 100644 (file)
@@ -35,7 +35,7 @@ static struct sigaction uncatch_signals[sizeof_array(catch_signals)];
 void
 setup_subproc_signals(const char *name)
 {
-       int i;
+       size_t i;
        struct sigaction catchsig;
 
        onerr_abort++;
@@ -54,7 +54,7 @@ setup_subproc_signals(const char *name)
 void
 cu_subproc_signals(int argc, void **argv)
 {
-       int i;
+       size_t i;
 
        for (i = 0; i < sizeof_array(catch_signals); i++) {
                if (sigaction(catch_signals[i], &uncatch_signals[i], NULL)) {