From 14606c301cce168b042925726b19d5d7c5b725f6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 14 Apr 2007 17:26:39 -0400 Subject: 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 --- src/pacman/conf.c | 2 +- src/pacman/pacman.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pacman') diff --git a/src/pacman/conf.c b/src/pacman/conf.c index a770fd47..045bdcf6 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -36,7 +36,7 @@ #include "sync.h" #include "downloadprog.h" -config_t *config_new() +config_t *config_new(void) { config_t *config; 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) { -- cgit v1.2.3