From a9e039edb442eb4b0060df7ee533415735aa5069 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 21 Sep 2010 12:06:24 +0300 Subject: [PATCH] Fix up silly int/enum and type vs variable name mixups in urlPath() --- rpmio/url.c | 8 ++++---- 1 file 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)