summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-06 12:11:55 -0400
committerDan McGee <dan@archlinux.org>2007-07-06 12:11:55 -0400
commit15e1ce2e709e0a16dd54ea3b5eaab0003e32b62d (patch)
treee18b7ff6c79c6c7a81c64caab9d7cb8f80a28274 /lib/libalpm/alpm.c
parent6b7b9743181078aa7152daffdfc1eaeb46304c0f (diff)
downloadpacman-15e1ce2e709e0a16dd54ea3b5eaab0003e32b62d.tar.xz
Various small fixes as suggested by some static code checkers
I ran flawfinder and sparse over the pacman source code and found a few things that were worth fixing (and were quick fixes). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 3b4a089c..dc5ab649 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -44,7 +44,7 @@ enum _pmerrno_t pm_errno SYMEXPORT;
* functions are called.
* @return 0 on success, -1 on error (pm_errno is set accordingly)
*/
-int SYMEXPORT alpm_initialize()
+int SYMEXPORT alpm_initialize(void)
{
ASSERT(handle == NULL, RET_ERR(PM_ERR_HANDLE_NOT_NULL, -1));
@@ -59,7 +59,7 @@ int SYMEXPORT alpm_initialize()
/** Release the library. This should be the last alpm call you make.
* @return 0 on success, -1 on error (pm_errno is set accordingly)
*/
-int SYMEXPORT alpm_release()
+int SYMEXPORT alpm_release(void)
{
int dbs_left = 0;