pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib It turns out the commen...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ddbb0259a112
branches: trunk
changeset: 460942:ddbb0259a112
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Sep 08 05:32:56 2003 +0000
description:
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:
pkgtools/pkg_install/files/lib/pkgdb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e1952bc813f3 -r ddbb0259a112 pkgtools/pkg_install/files/lib/pkgdb.c
--- a/pkgtools/pkg_install/files/lib/pkgdb.c Mon Sep 08 04:55:29 2003 +0000
+++ b/pkgtools/pkg_install/files/lib/pkgdb.c Mon Sep 08 05:32:56 2003 +0000
@@ -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 @@
#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; }
Home |
Main Index |
Thread Index |
Old Index