diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2012-08-13 22:23:35 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-08-13 22:23:35 +0000 |
commit | 2f4144495ecc7607e8f9e4ad664fcf30c52f5ef1 (patch) | |
tree | 9208e0bb15f2cae9d4bfbd13b2a8f6e749da07e0 /quse.c | |
parent | Fix qlist test cases for showdebug support. (diff) | |
download | portage-utils-2f4144495ecc7607e8f9e4ad664fcf30c52f5ef1.tar.gz portage-utils-2f4144495ecc7607e8f9e4ad664fcf30c52f5ef1.tar.bz2 portage-utils-2f4144495ecc7607e8f9e4ad664fcf30c52f5ef1.zip |
Fix compiler warnings for signedness.v0.11
Diffstat (limited to 'quse.c')
-rw-r--r-- | quse.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2010 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/quse.c,v 1.64 2011/02/21 07:33:21 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/quse.c,v 1.65 2012/08/13 22:23:35 robbat2 Exp $ * * Copyright 2005-2010 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2010 Mike Frysinger - <vapier@gentoo.org> @@ -35,10 +35,10 @@ static const char * const quse_opts_help[] = { "Only show package name", COMMON_OPTS_HELP }; -static const char quse_rcsid[] = "$Id: quse.c,v 1.64 2011/02/21 07:33:21 vapier Exp $"; +static const char quse_rcsid[] = "$Id: quse.c,v 1.65 2012/08/13 22:23:35 robbat2 Exp $"; #define quse_usage(ret) usage(ret, QUSE_FLAGS, quse_long_opts, quse_opts_help, lookup_applet_idx("quse")) -int quse_describe_flag(int ind, int argc, char **argv); +int quse_describe_flag(unsigned int ind, unsigned int argc, char **argv); char quse_name_only = 0; @@ -81,12 +81,12 @@ static void print_highlighted_use_flags(char *string, int ind, int argc, char ** } } -int quse_describe_flag(int ind, int argc, char **argv) +int quse_describe_flag(unsigned int ind, unsigned int argc, char **argv) { #define NUM_SEARCH_FILES ARRAY_SIZE(search_files) size_t buflen; char *buf, *p; - int i, f; + unsigned int i, f; size_t s; const char *search_files[] = { "use.desc", "use.local.desc", "arch.list", "lang.desc" }; FILE *fp[NUM_SEARCH_FILES]; |