summaryrefslogtreecommitdiff
path: root/lib/tempname.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2006-11-09 18:49:46 +0000
committerEric Blake <ebb9@byu.net>2006-11-09 18:49:46 +0000
commit8446c68075915b921cab48049c597ab1273046d8 (patch)
tree91da4e39d2517e31c641d38d543dbcf4a1707d84 /lib/tempname.c
parent8a9a88ce86ceb21a6dd03d155effe27598f1dfb4 (diff)
downloadgnulib-8446c68075915b921cab48049c597ab1273046d8.tar.gz
* lib/tempname.c (gen_tempname): Remove variant that invokes
__gen_tempname. * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for __gen_tempname.
Diffstat (limited to 'lib/tempname.c')
-rw-r--r--lib/tempname.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/tempname.c b/lib/tempname.c
index fd31acc444..919badb3dc 100644
--- a/lib/tempname.c
+++ b/lib/tempname.c
@@ -200,7 +200,6 @@ static const char letters[] =
__GT_DIR: create a directory, which will be mode 0700.
We use a clever algorithm to get hard-to-predict names. */
-#if _LIBC || !HAVE___GEN_TEMPNAME
int
__gen_tempname (char *tmpl, int kind)
{
@@ -321,15 +320,3 @@ __gen_tempname (char *tmpl, int kind)
__set_errno (EEXIST);
return -1;
}
-
-#else /* !_LIBC && HAVE___GEN_TEMPNAME */
-
-# undef __gen_tempname
-extern int __gen_tempname (char *, int);
-int
-gen_tempname (char *tmpl, int kind)
-{
- return __gen_tempname (tmpl, kind);
-}
-
-#endif /* !_LIBC && HAVE___GEN_TEMPNAME */