summaryrefslogtreecommitdiff
path: root/bin/ksh/exec.c
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2018-01-24 09:21:20 +0000
committerkamil <kamil@NetBSD.org>2018-01-24 09:21:20 +0000
commita1e1dcf1c16cd1fe6bf2af049d8390363defdb39 (patch)
tree8edab6fa5ce37b163c1a63710edb60b7cd554fb8 /bin/ksh/exec.c
parent474ee3bb7ec87bb5d608d37526dcb71b33e91926 (diff)
ksh: Rename a local function tdelete to mytdelete
This removes a clash with well-known libc function tdelete(3) from POSIX. This allows to build ksh against MSan. The new name might not be perfect, but long term ksh should be switched to the libc version. Sponsored by <The NetBSD Foundation>
Diffstat (limited to 'bin/ksh/exec.c')
-rw-r--r--bin/ksh/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/exec.c b/bin/ksh/exec.c
index 3d97c3e9216..9bd873b5293 100644
--- a/bin/ksh/exec.c
+++ b/bin/ksh/exec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.24 2017/07/01 23:12:08 joerg Exp $ */
+/* $NetBSD: exec.c,v 1.25 2018/01/24 09:21:20 kamil Exp $ */
/*
* execute command tree
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: exec.c,v 1.24 2017/07/01 23:12:08 joerg Exp $");
+__RCSID("$NetBSD: exec.c,v 1.25 2018/01/24 09:21:20 kamil Exp $");
#endif
#include <sys/stat.h>
@@ -843,7 +843,7 @@ define(name, t)
}
if (t == NULL) { /* undefine */
- tdelete(tp);
+ mytdelete(tp);
return was_set ? 0 : 1;
}