]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/make-temp-file.c
libiberty: Expose choose_tmpdir, and fix constness of return type
[thirdparty/gcc.git] / libiberty / make-temp-file.c
index 7b74f8179b101e9c37c6bb8683b3cc588ed1fc27..244cc23c5090e1c0d227820dc703adbc8022f8d5 100644 (file)
@@ -93,7 +93,7 @@ static char *memoized_tmpdir;
 
 /*
 
-@deftypefn Replacement char* choose_tmpdir ()
+@deftypefn Replacement const char* choose_tmpdir ()
 
 Returns a pointer to a directory path suitable for creating temporary
 files in.
@@ -102,7 +102,7 @@ files in.
 
 */
 
-char *
+const char *
 choose_tmpdir (void)
 {
   if (!memoized_tmpdir)