From e39423c06daa6d37098d1000174587b10ce695a3 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 15 Oct 2014 20:20:05 +0000 Subject: 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 --- libiberty/choose-temp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libiberty/choose-temp.c') 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. */ -- cgit v1.2.1