From ba55c16317a0568626028ce7eb84ae38130fbf2a Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 1 Jun 2008 21:11:15 +0300 Subject: [PATCH] libdpkg: Use size_t intead of int for the index to fix a warning --- ChangeLog | 6 ++++++ lib/subproc.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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)) { -- 2.39.5