diff options
author | DJ Delorie <dj@delorie.com> | 2005-03-28 02:09:01 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2005-03-28 02:09:01 +0000 |
commit | 330f7c1a6218d3b4a10b5b571eee65f3d53b64ac (patch) | |
tree | c293e7d81ced8094d1f3e020d8eaf36173ea26a4 /libiberty/make-temp-file.c | |
parent | 78535644ba911dce637b8f8f3f8488859558c605 (diff) | |
download | gdb-330f7c1a6218d3b4a10b5b571eee65f3d53b64ac.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/make-temp-file.c')
-rw-r--r-- | libiberty/make-temp-file.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c index 883350479fc..71fb7037f46 100644 --- a/libiberty/make-temp-file.c +++ b/libiberty/make-temp-file.c @@ -43,7 +43,7 @@ Boston, MA 02111-1307, USA. */ #endif #include "libiberty.h" -extern int mkstemps PARAMS ((char *, int)); +extern int mkstemps (char *, int); /* '/' works just fine on MS-DOS based systems. */ #ifndef DIR_SEPARATOR @@ -61,11 +61,10 @@ extern int mkstemps PARAMS ((char *, int)); If success, DIR is returned. Otherwise NULL is returned. */ -static inline const char *try PARAMS ((const char *, const char *)); +static inline const char *try (const char *, const char *); static inline const char * -try (dir, base) - const char *dir, *base; +try (const char *dir, const char *base) { if (base != 0) return base; @@ -95,7 +94,7 @@ files in. */ char * -choose_tmpdir () +choose_tmpdir (void) { const char *base = 0; char *tmpdir; @@ -146,8 +145,7 @@ string is @code{malloc}ed, and the temporary file has been created. */ char * -make_temp_file (suffix) - const char *suffix; +make_temp_file (const char *suffix) { const char *base = choose_tmpdir (); char *temp_filename; |