From 7725577a5347958de47476f4659c74094d18de32 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Aug 2012 23:37:28 +0200 Subject: locate: pass unsigned integer to _parse() --- src/locate.c | 2 +- src/locate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locate.c b/src/locate.c index ef746213a..ba58c5d77 100644 --- a/src/locate.c +++ b/src/locate.c @@ -86,7 +86,7 @@ locate_item_list_new(unsigned length) } struct locate_item_list * -locate_item_list_parse(char *argv[], int argc, bool fold_case) +locate_item_list_parse(char *argv[], unsigned argc, bool fold_case) { if (argc % 2 != 0) return NULL; diff --git a/src/locate.h b/src/locate.h index 5682679d1..830ca219e 100644 --- a/src/locate.h +++ b/src/locate.h @@ -62,7 +62,7 @@ locate_item_list_new(unsigned length); /* return number of items or -1 on error */ gcc_nonnull(1) struct locate_item_list * -locate_item_list_parse(char *argv[], int argc, bool fold_case); +locate_item_list_parse(char *argv[], unsigned argc, bool fold_case); gcc_nonnull(1) void -- cgit v1.2.3