Skip to content
Snippets Groups Projects
Commit 4ba7ef34 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fixed a "comparison between signed and unsigned" warning

parent 4515d064
No related branches found
No related tags found
No related merge requests found
......@@ -784,7 +784,7 @@ static char *try_config(char *s, const char *opt)
static const char *try_option(const char *p, const char *q, const char *opt)
{
size_t len = strlen(opt);
return (q - p > len && strncmp(p, opt, len) == 0) ? p + len : NULL;
return ((size_t)(q - p) > len && !strncmp(p, opt, len)) ? &p[len] : NULL;
}
static int ip_addr(const char *s, int len, struct in_addr *addr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment