__attribute__((__warn_unused_result__));
extern int add_string (char ***argv, int *size, int *alloc, const char *str);
-extern int count_strings (char *const *argv);
+extern size_t count_strings (char *const *argv);
extern void sort_strings (char **argv, int len);
extern void free_strings (char **argv);
extern void free_stringslen (char **argv, int len);
return -1;
/* We want lines[1+partnum]. */
- if (count_strings (lines) < 1+partnum) {
+ if (count_strings (lines) < (size_t) (1+partnum)) {
reply_with_error ("partition number out of range: %d", partnum);
free_strings (lines);
return -1;