diff options
author | Allan McRae <allan@archlinux.org> | 2010-12-18 15:15:05 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-12-30 16:39:23 +0100 |
commit | 351250adb49bea470b88fca54dcfba789b58545c (patch) | |
tree | dcd86764e9ff711517666f7ebf9fd997ec29fcf2 /src/util | |
parent | cb7ba4e4e5c1b46b726cb6c9f10395784511bb2a (diff) | |
download | pacman-351250adb49bea470b88fca54dcfba789b58545c.tar.gz pacman-351250adb49bea470b88fca54dcfba789b58545c.tar.xz |
Declare all local functions static
All functions that are limited to the local translation unit are
declared static. This exposed that the _pkg_get_deltas declaration
in be_local.c was being satified by the function in packages.c which
when declared static caused linker failures.
Fixes all warnings with -Wmissing-{declarations,prototypes}.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/cleanupdelta.c | 2 | ||||
-rw-r--r-- | src/util/testdb.c | 2 | ||||
-rw-r--r-- | src/util/testpkg.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/util/cleanupdelta.c b/src/util/cleanupdelta.c index 20102824..a2d1541e 100644 --- a/src/util/cleanupdelta.c +++ b/src/util/cleanupdelta.c @@ -37,7 +37,7 @@ static void cleanup(int signum) { exit(signum); } -void output_cb(pmloglevel_t level, char *fmt, va_list args) +static void output_cb(pmloglevel_t level, char *fmt, va_list args) { if(strlen(fmt)) { switch(level) { diff --git a/src/util/testdb.c b/src/util/testdb.c index 332224e1..96a123a6 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -39,7 +39,7 @@ static void cleanup(int signum) { exit(signum); } -void output_cb(pmloglevel_t level, char *fmt, va_list args) +static void output_cb(pmloglevel_t level, char *fmt, va_list args) { if(strlen(fmt)) { switch(level) { diff --git a/src/util/testpkg.c b/src/util/testpkg.c index 6fc0ce00..0dd8db8f 100644 --- a/src/util/testpkg.c +++ b/src/util/testpkg.c @@ -24,7 +24,7 @@ #define BASENAME "testpkg" -void output_cb(pmloglevel_t level, char *fmt, va_list args) +static void output_cb(pmloglevel_t level, char *fmt, va_list args) { if(fmt[0] == '\0') { return; |