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/be_package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/be_package.c') diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index 8b035cac..ff820b80 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -87,7 +87,7 @@ static void *_package_changelog_open(alpm_pkg_t *pkg) * @return the number of characters read, or 0 if there is no more data */ static size_t _package_changelog_read(void *ptr, size_t size, - const alpm_pkg_t UNUSED *pkg, const void *fp) + const alpm_pkg_t UNUSED *pkg, void *fp) { ssize_t sret = archive_read_data((struct archive *)fp, ptr, size); /* Report error (negative values) */ -- cgit v1.2.3-24-g4f1b