summaryrefslogtreecommitdiff
path: root/libiberty/choose-temp.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-10-15 20:20:05 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-10-15 20:20:05 +0000
commite39423c06daa6d37098d1000174587b10ce695a3 (patch)
tree0b95c0fc810d46f2993b7222ec997e2cc685e750 /libiberty/choose-temp.c
parent26882aba54fc8a2112450a011d699eb7b1110ee9 (diff)
downloadgcc-e39423c06daa6d37098d1000174587b10ce695a3.tar.gz
libiberty: Expose choose_tmpdir, and fix constness of return type
include/ChangeLog: * libiberty.h (choose_tmpdir): New prototype. libiberty/ChangeLog: * choose-temp.c (choose_tmpdir): Remove now-redundant local copy of prototype. * functions.texi: Regenerate. * make-temp-file.c (choose_tmpdir): Convert return type from char * to const char * - given that this returns a pointer to a memoized allocation, the caller must not touch it. From-SVN: r216285
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r--libiberty/choose-temp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c
index 0a454cfa7ca..8e1e84be765 100644
--- a/libiberty/choose-temp.c
+++ b/libiberty/choose-temp.c
@@ -34,7 +34,6 @@ Boston, MA 02110-1301, USA. */
#endif
#include "libiberty.h"
-extern char *choose_tmpdir (void);
/* Name of temporary file.
mktemp requires 6 trailing X's. */