rgmanager: reslist: sanitize act_dup
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
---
reslist.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/reslist.c b/reslist.c
index f9924cd..b75f4b0 100644
--- a/reslist.c
+++ b/reslist.c
@@ -626,10 +626,10 @@ print_resources(resource_t **resources)
}
-void *
+resource_act_t *
act_dup(resource_act_t *acts)
{
- int x;
+ size_t x;
resource_act_t *newacts;
for (x = 0; acts[x].ra_name; x++);
--
1.7.3.4
|