Issue #25923: Added more const qualifiers to signatures of static and private functions.
diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c
index a9c406f..26bf094 100644
--- a/Modules/_curses_panel.c
+++ b/Modules/_curses_panel.c
@@ -56,7 +56,7 @@
  */
 
 static PyObject *
-PyCursesCheckERR(int code, char *fname)
+PyCursesCheckERR(int code, const char *fname)
 {
     if (code != ERR) {
         Py_INCREF(Py_None);