From 01d55229cc465d9d256a2699b4a0ba4f22319e62 Mon Sep 17 00:00:00 2001 From: proven Date: Wed, 21 Apr 1993 08:14:39 +0000 Subject: [PATCH] Changed hash_open to dbopen. --- bin/ps/devname.c | 4 ++-- usr.bin/vacation/vacation.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/ps/devname.c b/bin/ps/devname.c index b0e6ab4d9d53..b13fd6115296 100644 --- a/bin/ps/devname.c +++ b/bin/ps/devname.c @@ -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 @@ -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; diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c index 5a1b95036d78..fe17a7bb72c3 100644 --- a/usr.bin/vacation/vacation.c +++ b/usr.bin/vacation/vacation.c @@ -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);