aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-14 02:35:39 +0000
committerYang Tse <yangsita@gmail.com>2008-10-14 02:35:39 +0000
commitad61b58036bf2b64916b4a66f46f393c68da872c (patch)
tree6b778af2ad0999680488dd07dbeb8c831ab3a85f /lib/url.c
parentb7722e7037d87e4afeded8a7317db25875002bc0 (diff)
fix compiler warning
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index e22ddee6e..d1393d2e6 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3176,13 +3176,13 @@ static CURLcode ParseURLAndFillConnection(struct SessionHandle *data,
char *percent = strstr (conn->host.name, "%25");
if (percent) {
char *endp;
- unsigned int scope = strtoul (percent + 3, &endp, 10);
+ unsigned long scope = strtoul (percent + 3, &endp, 10);
if (*endp == ']') {
/* The address scope was well formed. Knock it out of the hostname. */
memmove(percent, endp, strlen(endp)+1);
if (!data->state.this_is_a_follow)
/* Don't honour a scope given in a Location: header */
- conn->scope = scope;
+ conn->scope = (unsigned int)scope;
} else
infof(data, "Invalid IPv6 address format\n");
}