diff options
author | Dan McGee <dan@archlinux.org> | 2008-11-01 01:11:38 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-11-01 01:46:13 +0100 |
commit | 8d4e1e67546bcc04b5412e0f94a752c7215fb53d (patch) | |
tree | f106fb7c19287e40b15b0d13b918b2a3e134477d /lib/libalpm/error.c | |
parent | 314b4462d2ef1264b50b6745c57072f9c7b9d14e (diff) | |
download | pacman-8d4e1e67546bcc04b5412e0f94a752c7215fb53d.tar.gz pacman-8d4e1e67546bcc04b5412e0f94a752c7215fb53d.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r-- | lib/libalpm/error.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <download.h> /* downloadLastErrString */ +#define fetchLastErrString downloadLastErrString #elif defined(HAVE_LIBFETCH) #include <fetch.h> /* 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"); |