From: Guillem Jover Date: Sun, 1 Jun 2008 18:11:15 +0000 (+0300) Subject: libdpkg: Use size_t intead of int for the index to fix a warning X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba55c16317a0568626028ce7eb84ae38130fbf2a;p=dpkg libdpkg: Use size_t intead of int for the index to fix a warning --- diff --git a/ChangeLog b/ChangeLog index 43a6ec91..98d7fd39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-01 Guillem Jover + + * 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 * src/query.c (searchfiles): Use strpbrk instead of strcspn and diff --git a/lib/subproc.c b/lib/subproc.c index 85a9162b..944bbd75 100644 --- a/lib/subproc.c +++ b/lib/subproc.c @@ -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)) {