diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-08 05:32:56 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-08 05:32:56 +0000 |
commit | 90f823f3fe4f6cc3cde13e9cf45deb7b1080d9bf (patch) | |
tree | 988be3ad17c69a281e2dfa73e88ebba60fe8090f /pkgtools/pkg_install | |
parent | f133c85f9c673b13a82965eeb20e21b1cf5742cf (diff) | |
download | pkgsrc-90f823f3fe4f6cc3cde13e9cf45deb7b1080d9bf.tar.gz |
It turns out the comment at the top of pkgdb_open is wrong. It actually
returns 0 if there is an error, and 1 otherwise.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/lib/pkgdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/lib/pkgdb.c b/pkgtools/pkg_install/files/lib/pkgdb.c index 37975151339..1a562c254fb 100644 --- a/pkgtools/pkg_install/files/lib/pkgdb.c +++ b/pkgtools/pkg_install/files/lib/pkgdb.c @@ -1,4 +1,4 @@ -/* $NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 jlam Exp $ */ +/* $NetBSD: pkgdb.c,v 1.17 2003/09/08 05:32:56 jlam Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -8,7 +8,7 @@ #include <sys/cdefs.h> #endif #ifndef lint -__RCSID("$NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 jlam Exp $"); +__RCSID("$NetBSD: pkgdb.c,v 1.17 2003/09/08 05:32:56 jlam Exp $"); #endif /* @@ -257,7 +257,7 @@ pkgdb_remove_pkg(const char *pkg) #else /* !HAVE_DBOPEN */ -int pkgdb_open(int mode) { return 0; } +int pkgdb_open(int mode) { return 1; } void pkgdb_close(void) {} int pkgdb_store(const char *key, const char *val) { return 0; } char *pkgdb_retrieve(const char *key) { return NULL; } |