Changed hash_open to dbopen.
This commit is contained in:
parent
76be010f7a
commit
01d55229cc
@ -33,7 +33,7 @@
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)devname.c 5.14 (Berkeley) 5/6/91";
|
||||
static char rcsid[] = "$Header: /cvsroot/src/bin/ps/Attic/devname.c,v 1.3 1993/03/23 00:26:25 cgd Exp $";
|
||||
static char rcsid[] = "$Header: /cvsroot/src/bin/ps/Attic/devname.c,v 1.4 1993/04/21 08:14:39 proven Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -56,7 +56,7 @@ devname(dev, type)
|
||||
DBT data, key;
|
||||
|
||||
if (!db && !failure &&
|
||||
!(db = hash_open(_PATH_DEVDB, O_RDONLY, 0, NULL))) {
|
||||
!(db = dbopen(_PATH_DEVDB, O_RDONLY, 0, DB_HASH, NULL))) {
|
||||
(void)fprintf(stderr,
|
||||
"warning: no device database %s\n", _PATH_DEVDB);
|
||||
failure = 1;
|
||||
|
@ -147,8 +147,8 @@ main(argc, argv)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
db = hash_open(VDB, O_CREAT|O_RDWR | (iflag ? O_TRUNC : 0),
|
||||
S_IRUSR|S_IWUSR, (HASHINFO *)NULL);
|
||||
db = dbopen(VDB, O_CREAT|O_RDWR | (iflag ? O_TRUNC : 0),
|
||||
S_IRUSR|S_IWUSR, DB_HASH, (HASHINFO *)NULL);
|
||||
if (!db) {
|
||||
syslog(LOG_NOTICE, "vacation: %s: %s\n", VDB, strerror(errno));
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user