mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
Avoid "discards const" warnings in termname() -- return a static buffer,
as documented.
This commit is contained in:
@@ -135,9 +135,11 @@ attr_t term_attrs(void)
|
||||
|
||||
char *termname(void)
|
||||
{
|
||||
static char _termname[14] = "pdcurses";
|
||||
|
||||
PDC_LOG(("termname() - called\n"));
|
||||
|
||||
return "pdcurses";
|
||||
return _termname;
|
||||
}
|
||||
|
||||
char wordchar(void)
|
||||
|
||||
Reference in New Issue
Block a user