aboutsummaryrefslogtreecommitdiff
path: root/binutils/bucomm.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-11-29 18:51:21 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-11-29 18:51:21 +0000
commitaf667503bbcea170ccc0c5d98894ea9edb074567 (patch)
tree1127fb639c4724b1f03d1deed1b529d2d7d93a34 /binutils/bucomm.c
parent3543a2f1954727e6776c72b7ec46fb689df10eca (diff)
downloadgdb-af667503bbcea170ccc0c5d98894ea9edb074567.zip
gdb-af667503bbcea170ccc0c5d98894ea9edb074567.tar.gz
gdb-af667503bbcea170ccc0c5d98894ea9edb074567.tar.bz2
2001-11-29 H.J. Lu <hjl@gnu.org>
* bucomm.c (make_tempname): Revert the changes made on 2001-11-14 and 2001-11-12. They won't work with directories.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r--binutils/bucomm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index 68b191b..aa3080f 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -35,9 +35,6 @@
typedef long time_t;
#endif
#endif
-
-/* Ought to be defined in libiberty.h... */
-extern int mkstemps PARAMS ((char *, int));
/* Error reporting */
@@ -236,14 +233,14 @@ make_tempname (filename)
#endif
strcat (tmpname, "/");
strcat (tmpname, template);
- close (mkstemps (tmpname, 0));
+ mktemp (tmpname);
*slash = c;
}
else
{
tmpname = xmalloc (sizeof (template));
strcpy (tmpname, template);
- close (mkstemps (tmpname, 0));
+ mktemp (tmpname);
}
return tmpname;
}