From 49b1fae4309ab5b9833f0af388483c2b6b4b3d50 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 28 Mar 2005 02:09:01 +0000 Subject: merge from gcc --- libiberty/make-temp-file.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'libiberty/make-temp-file.c') diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c index 8833504..71fb703 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; -- cgit v1.1