* src/w32/compat/posixfcn.c (ttyname): Avoid const char*

This commit is contained in:
Torbjörn SVENSSON 2023-06-09 16:09:54 +02:00 committed by Paul Smith
parent b686980c66
commit ee366afbf1

View 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;
}