summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-14 23:26:39 +0200
committerDan McGee <dan@archlinux.org>2007-04-14 23:26:39 +0200
commit14606c301cce168b042925726b19d5d7c5b725f6 (patch)
treed010270aba82ebfbfe0a94679fb18270b06fa9da /src/pacman/pacman.c
parentdde2f3eefa323b0904a53aded51552700de21f72 (diff)
downloadpacman-14606c301cce168b042925726b19d5d7c5b725f6.tar.gz
pacman-14606c301cce168b042925726b19d5d7c5b725f6.tar.xz
Add void to functions with empty parameter list
Adding void [eg foo(void) instead of foo()] makes the code more compliant with ANSI C. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 98fcd98e..483a7bbf 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -179,7 +179,7 @@ static void usage(int op, char *myname)
/**
* @brief Output pacman version and copyright.
*/
-static void version()
+static void version(void)
{
printf("\n");
printf(" .--. Pacman v%s - libalpm v%s\n", PACKAGE_VERSION, LIB_VERSION);
@@ -196,7 +196,7 @@ static void version()
* Safe to call multiple times.
*/
/* Inspired by the monotone function localize_monotone. */
-static void localize()
+static void localize(void)
{
static int init = 0;
if (!init) {