summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_package.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-12-18 13:26:04 +0100
committerDan McGee <dan@archlinux.org>2010-12-21 01:03:21 +0100
commita611879318a4c39488f977308af8ee90f428995b (patch)
treec69723f5229b308ab568e0f211cc168055467131 /lib/libalpm/be_package.c
parent5776090055642bc7651a07cd9d31cf056d0531dc (diff)
downloadpacman-a611879318a4c39488f977308af8ee90f428995b.tar.gz
pacman-a611879318a4c39488f977308af8ee90f428995b.tar.xz
Always specify arguement type in function delcarations
Always declare a function with (void) rather than () when we expect no arguements. Fixes all warnings with -Wstrict-prototypes. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_package.c')
-rw-r--r--lib/libalpm/be_package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c
index 32ec9934..f9f18d38 100644
--- a/lib/libalpm/be_package.c
+++ b/lib/libalpm/be_package.c
@@ -131,7 +131,7 @@ int _package_changelog_close(const pmpkg_t *pkg, void *fp)
* lets us only initialize an operations struct once which can always be
* accessed by this method.
*/
-static struct pkg_operations *get_file_pkg_ops()
+static struct pkg_operations *get_file_pkg_ops(void)
{
static struct pkg_operations *file_pkg_ops = NULL;
/* determine whether our static file_pkg_ops struct has been initialized */