summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2003-09-08 02:09:04 +0000
committerjlam <jlam>2003-09-08 02:09:04 +0000
commit485afb91c6002efae14486a02f4a4d7cb396bd5d (patch)
tree8c9e3d3ff1447f6ceea657a8950de932d2c03027
parent1aa8b25125413fed78dfb1e4b3ffe98088bd4fdb (diff)
downloadpkgsrc-485afb91c6002efae14486a02f4a4d7cb396bd5d.tar.gz
The pkgdb_* functions should be no-ops on platforms that don't have the
db*() functions, so make the dummy pkgdb_open() always return 0 for a successful open of the package dbfile.
-rw-r--r--pkgtools/pkg_install/files/lib/pkgdb.c6
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 7ea70a478ec..37975151339 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.15 2003/09/08 02:07:42 jlam Exp $ */
+/* $NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 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.15 2003/09/08 02:07:42 jlam Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 jlam Exp $");
#endif
/*
@@ -257,7 +257,7 @@ pkgdb_remove_pkg(const char *pkg)
#else /* !HAVE_DBOPEN */
-int pkgdb_open(int mode) { return -1; }
+int pkgdb_open(int mode) { return 0; }
void pkgdb_close(void) {}
int pkgdb_store(const char *key, const char *val) { return 0; }
char *pkgdb_retrieve(const char *key) { return NULL; }