summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-18 17:07:05 -0500
committerDan McGee <dan@archlinux.org>2011-09-18 17:11:39 -0500
commit86d9fcbfff6d806bcb6d0a19d73d09e1af4e1733 (patch)
tree7483800f1c85c9a6cedd8217b524719de6a8f222 /lib/libalpm/alpm.h
parent69a3558b75948e4b1592a060a58f6c1d58b7d459 (diff)
downloadpacman-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/alpm.h')
-rw-r--r--lib/libalpm/alpm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index d180fcad..202c3cd3 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -899,7 +899,7 @@ void *alpm_pkg_changelog_open(alpm_pkg_t *pkg);
* error occurred.
*/
size_t alpm_pkg_changelog_read(void *ptr, size_t size,
- const alpm_pkg_t *pkg, const void *fp);
+ const alpm_pkg_t *pkg, void *fp);
int alpm_pkg_changelog_close(const alpm_pkg_t *pkg, void *fp);