summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 12:06:24 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 12:06:24 +0300
commita9e039edb442eb4b0060df7ee533415735aa5069 (patch)
tree3c32755db1868b0783cc7c46c186bcf456705d46 /rpmio
parent99b44e35e5ed48783f8b3e2533b240192848d86c (diff)
downloadrpm-a9e039edb442eb4b0060df7ee533415735aa5069.tar.gz
rpm-a9e039edb442eb4b0060df7ee533415735aa5069.tar.bz2
rpm-a9e039edb442eb4b0060df7ee533415735aa5069.zip
Fix up silly int/enum and type vs variable name mixups in urlPath()
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/url.c b/rpmio/url.c
index e4b15d2e4..0577706eb 100644
--- a/rpmio/url.c
+++ b/rpmio/url.c
@@ -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)