diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 23:09:54 +0200 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 23:09:54 +0200 |
commit | c3f53cdf1275b4572338bb822334d0622df9ad29 (patch) | |
tree | 1275f06fb191abaae33a48f64b4593f4860c0c25 /src/pacman/pacman.c | |
parent | d30333756a9114cb940cee3d57b99de018dea41b (diff) | |
download | pacman-c3f53cdf1275b4572338bb822334d0622df9ad29.tar.gz pacman-c3f53cdf1275b4572338bb822334d0622df9ad29.tar.xz |
changed alpm_db_register() prototype
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 730d9207..7f13f39e 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -167,7 +167,8 @@ int main(int argc, char *argv[]) } /* Opening local database */ - if(alpm_db_register("local", &db_local) == -1) { + db_local = alpm_db_register("local"); + if(db_local == NULL) { ERR(NL, "could not register 'local' database (%s)\n", alpm_strerror(pm_errno)); cleanup(1); } |