From 86d9fcbfff6d806bcb6d0a19d73d09e1af4e1733 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 18 Sep 2011 17:07:05 -0500 Subject: 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 --- lib/libalpm/package.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/package.c') 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; -- cgit v1.2.3-24-g4f1b