Correct the documentation of the return values for pkgdb_open() and
pkgdb_remove_pkg().
This commit is contained in:
parent
4ae63e1052
commit
5fc555d16b
|
@ -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>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -63,8 +63,8 @@ static char pkgdb_cache[FILENAME_MAX];
|
||||||
/*
|
/*
|
||||||
* Open the pkg-database
|
* Open the pkg-database
|
||||||
* Return value:
|
* Return value:
|
||||||
* 0: everything ok
|
* 1: everything ok
|
||||||
* -1: error, see errno
|
* 0: error
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
pkgdb_open(int mode)
|
pkgdb_open(int mode)
|
||||||
|
@ -197,7 +197,12 @@ pkgdb_remove(const char *key)
|
||||||
return (*pkgdbp->del) (pkgdbp, &keyd, 0);
|
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
|
int
|
||||||
pkgdb_remove_pkg(const char *pkg)
|
pkgdb_remove_pkg(const char *pkg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue