Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/lib Correct the documentation of the re...
details: https://anonhg.NetBSD.org/src/rev/87cb5ebe483a
branches: trunk
changeset: 551552:87cb5ebe483a
user: jlam <jlam%NetBSD.org@localhost>
date: Mon Sep 08 05:34:35 2003 +0000
description:
Correct the documentation of the return values for pkgdb_open() and
pkgdb_remove_pkg().
diffstat:
usr.sbin/pkg_install/lib/pkgdb.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r d8051fe8bc47 -r 87cb5ebe483a usr.sbin/pkg_install/lib/pkgdb.c
--- a/usr.sbin/pkg_install/lib/pkgdb.c Mon Sep 08 05:21:58 2003 +0000
+++ b/usr.sbin/pkg_install/lib/pkgdb.c Mon Sep 08 05:34:35 2003 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: pkgdb.c,v 1.15 2003/09/02 07:35:04 jlam Exp $ */
+/* $NetBSD: pkgdb.c,v 1.16 2003/09/08 05:34:35 jlam Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pkgdb.c,v 1.15 2003/09/02 07:35:04 jlam Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.16 2003/09/08 05:34:35 jlam Exp $");
#endif
/*
@@ -63,8 +63,8 @@
/*
* Open the pkg-database
* Return value:
- * 0: everything ok
- * -1: error, see errno
+ * 1: everything ok
+ * 0: error
*/
int
pkgdb_open(int mode)
@@ -197,7 +197,12 @@
return (*pkgdbp->del) (pkgdbp, &keyd, 0);
}
-/* remove any entry from the cache which has a data field of `pkg' */
+/*
+ * Remove any entry from the cache which has a data field of `pkg'.
+ * Return value:
+ * 1: everything ok
+ * 0: error
+ */
int
pkgdb_remove_pkg(const char *pkg)
{
Home |
Main Index |
Thread Index |
Old Index