From 86ca39d15e02dff47b5b0f5bcd0494cf101ce0c1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 4 Nov 2007 12:05:22 -0600 Subject: Clean up usage of extern variables Instead of declaring the extern variable in every *.c file, include it in the header file that makes sense. This means handle.h for the handle, and conf.h for the pacman side config object. Signed-off-by: Dan McGee --- src/pacman/conf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pacman/conf.h') diff --git a/src/pacman/conf.h b/src/pacman/conf.h index 4283af7d..7249f068 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -78,6 +78,9 @@ enum { PM_OP_DEPTEST }; +/* global config variable */ +extern config_t *config; + config_t *config_new(void); int config_free(config_t *oldconfig); -- cgit v1.2.3-70-g09d2