summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-07-27 15:35:40 +0000
committermillert <millert@openbsd.org>1998-07-27 15:35:40 +0000
commit97341f184f095425994918198ef19e08c4707fd8 (patch)
tree8789abaa3b13e251bb18864a781011368cd9b262 /lib/libc
parentinclude sys/param.h to pull in MAXPATHLEN (diff)
downloadwireguard-openbsd-97341f184f095425994918198ef19e08c4707fd8.tar.xz
wireguard-openbsd-97341f184f095425994918198ef19e08c4707fd8.zip
bad Theo, changed a variable name ;-)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/db/hash/hash_page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/db/hash/hash_page.c b/lib/libc/db/hash/hash_page.c
index 7a4ad18015b..9081f231789 100644
--- a/lib/libc/db/hash/hash_page.c
+++ b/lib/libc/db/hash/hash_page.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: hash_page.c,v 1.5 1998/07/27 15:33:43 millert Exp $";
+static char rcsid[] = "$OpenBSD: hash_page.c,v 1.6 1998/07/27 15:35:40 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -872,8 +872,8 @@ open_temp(hashp)
/* Block signals; make sure file goes away at process exit. */
(void)sigfillset(&set);
(void)sigprocmask(SIG_BLOCK, &set, &oset);
- if ((hashp->fp = mkstemp(namestr)) != -1) {
- (void)unlink(namestr);
+ if ((hashp->fp = mkstemp(path)) != -1) {
+ (void)unlink(path);
(void)fcntl(hashp->fp, F_SETFD, 1);
}
(void)sigprocmask(SIG_SETMASK, &oset, (sigset_t *)NULL);