From 8d4e1e67546bcc04b5412e0f94a752c7215fb53d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 31 Oct 2008 19:11:38 -0500 Subject: Make libfetch the 'native' download library Use libfetch naming in the code in place of libdownload names. This is in preparation for dropping support for libdownload at some point as libfetch can run on Linux. Signed-off-by: Dan McGee --- lib/libalpm/error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/error.c') diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index 05caf8ec..80a4fb1a 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -32,9 +32,9 @@ #if defined(HAVE_LIBDOWNLOAD) #include /* downloadLastErrString */ +#define fetchLastErrString downloadLastErrString #elif defined(HAVE_LIBFETCH) #include /* fetchLastErrString */ -#define downloadLastErrString fetchLastErrString #endif /* libalpm */ @@ -154,9 +154,9 @@ const char SYMEXPORT *alpm_strerror(int err) * requires the archive struct, so we can't. Just use a generic * error string instead. */ return _("libarchive error"); - case PM_ERR_LIBDOWNLOAD: + case PM_ERR_LIBFETCH: #if defined(INTERNAL_DOWNLOAD) - return downloadLastErrString; + return fetchLastErrString; #else /* obviously shouldn't get here... */ return _("download library error"); -- cgit v1.2.3-24-g4f1b