Avoid "discards const" warnings in termname() -- return a static buffer,

as documented.
This commit is contained in:
William McBrine
2015-11-12 13:28:38 -05:00
parent 4a874a76cf
commit 4ec7f0f326

View File

@@ -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)