]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/w32/compat/posixfcn.c (ttyname): Avoid const char*
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 9 Jun 2023 14:09:54 +0000 (16:09 +0200)
committerPaul Smith <psmith@gnu.org>
Sat, 1 Jul 2023 16:49:24 +0000 (12:49 -0400)
src/w32/compat/posixfcn.c

index 314abe732cf627c9d1f7963ef230f3ba847b708b..72fe5f2eb1872829c73fe89b30dbbcd602fae55d 100644 (file)
@@ -147,5 +147,6 @@ ttyname (int fd UNUSED)
      sophisticated implementation should test whether FD is open for
      input or output.  We can do that by looking at the mode returned
      by GetConsoleMode.  */
-  return "CONOUT$";
+  static char name[] = "CONOUT$";
+  return name;
 }