From: Torbjörn SVENSSON Date: Fri, 9 Jun 2023 14:09:54 +0000 (+0200) Subject: * src/w32/compat/posixfcn.c (ttyname): Avoid const char* X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ee366afbf1c9e821af9b86545da6ae1ce48d68e0;p=thirdparty%2Fmake.git * src/w32/compat/posixfcn.c (ttyname): Avoid const char* --- diff --git a/src/w32/compat/posixfcn.c b/src/w32/compat/posixfcn.c index 314abe73..72fe5f2e 100644 --- a/src/w32/compat/posixfcn.c +++ b/src/w32/compat/posixfcn.c @@ -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; }