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 --- lib/libalpm/handle.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/handle.h') diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h index d8edf00f..0874ecd3 100644 --- a/lib/libalpm/handle.h +++ b/lib/libalpm/handle.h @@ -64,6 +64,7 @@ typedef struct _pmhandle_t { unsigned short usedelta; /* Download deltas if possible */ } pmhandle_t; +/* global handle variable */ extern pmhandle_t *handle; pmhandle_t *_alpm_handle_new(); -- cgit v1.2.3