summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-16 22:38:30 +0100
committerAurelien Foret <aurelien@archlinux.org>2005-03-16 22:38:30 +0100
commite1eff42fe16c281e8fe659bbd86a067fa00d4088 (patch)
tree4362bd09349862bec099e77df39760f1be896d98 /src
parent47cd8c2323db84e796943f31ef858f47cf99e3a1 (diff)
downloadpacman-e1eff42fe16c281e8fe659bbd86a067fa00d4088.tar.gz
pacman-e1eff42fe16c281e8fe659bbd86a067fa00d4088.tar.xz
Added missing extern declaration
Diffstat (limited to 'src')
-rw-r--r--src/pacman/conf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 89389422..c5df8352 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -34,6 +34,7 @@
#define min(X, Y) ((X) < (Y) ? (X) : (Y))
+extern char *pmo_dbpath;
extern list_t *pmo_holdpkg;
extern char *pmo_proxyhost;
extern unsigned short pmo_proxyport;
@@ -189,10 +190,10 @@ int parseconfig(char *file)
if(*ptr == '/') {
ptr++;
}
- if(alpm_set_option(PM_OPT_DBPATH, (long)ptr) == -1) {
- ERR(NL, "failed to set option DBPATH (%s)\n", alpm_strerror(pm_errno));
- return(1);
+ if(pmo_dbpath) {
+ FREE(pmo_dbpath);
}
+ pmo_dbpath = strdup(ptr);
vprint("config: dbpath: %s\n", ptr);
} else if (!strcmp(key, "LOGFILE")) {
if(alpm_set_option(PM_OPT_LOGFILE, (long)ptr) == -1) {