diff options
author | DJ Delorie <dj@redhat.com> | 2005-03-28 02:09:01 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-03-28 02:09:01 +0000 |
commit | 49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (patch) | |
tree | 4d135fc6ff13dd077dc5cf1669777e75cae85305 /libiberty/make-temp-file.c | |
parent | 67700458404b636f413570c6fab3d2cb221c63ba (diff) | |
download | gdb-49b1fae4309ab5b9833f0af388483c2b6b4b3d50.zip gdb-49b1fae4309ab5b9833f0af388483c2b6b4b3d50.tar.gz gdb-49b1fae4309ab5b9833f0af388483c2b6b4b3d50.tar.bz2 |
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 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; |