summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/opresolv.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-03-31 10:06:05 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-03-31 10:06:05 +0000
commit2cc9ca4c5e2c5c65764ff43beb1f21f93ca3aac8 (patch)
tree2d13f899e1da5fb939bbeccff1d411abccaa689c /src/lib/util/opresolv.c
parentc8b93e57d2392b50eafdf120198997b870e0deb4 (diff)
VS2013 x64 is little bit more anal about signed/unsigned comparison (nw)
Diffstat (limited to 'src/lib/util/opresolv.c')
-rw-r--r--src/lib/util/opresolv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/util/opresolv.c b/src/lib/util/opresolv.c
index 4d093a955da..6d011c7adb8 100644
--- a/src/lib/util/opresolv.c
+++ b/src/lib/util/opresolv.c
@@ -249,7 +249,7 @@ outofmemory:
optreserr_t option_resolution_add_param(option_resolution *resolution, const char *param, const char *value)
{
- int i;
+ size_t i;
int must_resolve;
optreserr_t err;
const char *option_specification;
@@ -344,7 +344,7 @@ void option_resolution_close(option_resolution *resolution)
optreserr_t option_resolution_finish(option_resolution *resolution)
{
- int i;
+ size_t i;
optreserr_t err;
struct option_resolution_entry *entry;
const char *option_specification;
@@ -445,7 +445,7 @@ const option_guide *option_resolution_find_option(option_resolution *resolution,
const option_guide *option_resolution_index_option(option_resolution *resolution, int indx)
{
- if ((indx < 0) || (indx >= resolution->option_count))
+ if ((indx < 0) || ((size_t)indx >= resolution->option_count))
return NULL;
return resolution->entries[indx].guide_entry;
}