summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-19 00:07:05 +0200
committerDan McGee <dan@archlinux.org>2011-09-19 00:11:39 +0200
commit86d9fcbfff6d806bcb6d0a19d73d09e1af4e1733 (patch)
tree7483800f1c85c9a6cedd8217b524719de6a8f222 /lib/libalpm/package.c
parent69a3558b75948e4b1592a060a58f6c1d58b7d459 (diff)
downloadpacman-86d9fcbfff6d806bcb6d0a19d73d09e1af4e1733.tar.gz
pacman-86d9fcbfff6d806bcb6d0a19d73d09e1af4e1733.tar.xz
Remove const specifier from changelog_read() void parameter
This shouldn't really be declared with const, and causes a compile error when -Wcast-qual is used. Remove the const specifier from the function specification and all implementations. Also fix one other trivial -Wcast-qual warning in _alpm_db_cmp(). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index af893025..ecea4118 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -111,7 +111,7 @@ static void *_pkg_changelog_open(alpm_pkg_t UNUSED *pkg)
}
static size_t _pkg_changelog_read(void UNUSED *ptr, size_t UNUSED size,
- const alpm_pkg_t UNUSED *pkg, const UNUSED void *fp)
+ const alpm_pkg_t UNUSED *pkg, UNUSED void *fp)
{
return 0;
}
@@ -360,7 +360,7 @@ void SYMEXPORT *alpm_pkg_changelog_open(alpm_pkg_t *pkg)
/** Read data from an open changelog 'file stream'. */
size_t SYMEXPORT alpm_pkg_changelog_read(void *ptr, size_t size,
- const alpm_pkg_t *pkg, const void *fp)
+ const alpm_pkg_t *pkg, void *fp)
{
ASSERT(pkg != NULL, return 0);
pkg->handle->pm_errno = 0;