Fix up silly int/enum and type vs variable name mixups in urlPath()

This commit is contained in:
Panu Matilainen 2010-09-21 12:06:24 +03:00
parent 99b44e35e5
commit a9e039edb4
1 changed files with 4 additions and 4 deletions

View File

@ -50,11 +50,11 @@ urltype urlIsURL(const char * url)
urltype urlPath(const char * url, const char ** pathp)
{
const char *path;
int urltype;
urltype type;
path = url;
urltype = urlIsURL(url);
switch (urltype) {
type = urlIsURL(url);
switch (type) {
case URL_IS_FTP:
url += sizeof("ftp://") - 1;
path = strchr(url, '/');
@ -89,7 +89,7 @@ urltype urlPath(const char * url, const char ** pathp)
}
if (pathp)
*pathp = path;
return urltype;
return type;
}
int urlGetFile(const char * url, const char * dest)