summaryrefslogtreecommitdiff
path: root/libiberty/choose-temp.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2000-06-15 20:56:25 +0000
committerH.J. Lu <hjl@lucon.org>2000-06-15 20:56:25 +0000
commitcebb9a4667261b7d10f4cc646801b7885eacc51d (patch)
treece230ec8669d2528ed6a237bfd8a633da145c7b9 /libiberty/choose-temp.c
parent4a43e8d841ca963132c00754348d10d05fcc7111 (diff)
downloadgdb-cebb9a4667261b7d10f4cc646801b7885eacc51d.tar.gz
Synced with libiberty in the gcc repository.
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r--libiberty/choose-temp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c
index 826d818ed62..1a475dd6fb9 100644
--- a/libiberty/choose-temp.c
+++ b/libiberty/choose-temp.c
@@ -79,9 +79,11 @@ extern int mkstemps ();
If success, DIR is returned.
Otherwise NULL is returned. */
-static char *
+static const char *try PARAMS ((const char *, const char *));
+
+static const char *
try (dir, base)
- char *dir, *base;
+ const char *dir, *base;
{
if (base != 0)
return base;
@@ -102,7 +104,7 @@ try (dir, base)
char *
choose_temp_base ()
{
- char *base = 0;
+ const char *base = 0;
char *temp_filename;
int len;
static char tmp[] = { DIR_SEPARATOR, 't', 'm', 'p', 0 };
@@ -147,7 +149,7 @@ char *
make_temp_file (suffix)
const char *suffix;
{
- char *base = 0;
+ const char *base = 0;
char *temp_filename;
int base_len, suffix_len;
int fd;