fix missing const-qualifier for argument of prompt_yesno()

Thu, 03 Sep 2026 18:32:47 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 03 Sep 2026 18:32:47 +0200
changeset 217
507490519676
parent 216
d0c3d3016650
child 218
1e9751f8eb0d

fix missing const-qualifier for argument of prompt_yesno()

src/input.c file | annotate | diff | comparison | revisions
src/input.h file | annotate | diff | comparison | revisions
--- a/src/input.c	Thu Sep 03 16:18:24 2026 +0200
+++ b/src/input.c	Thu Sep 03 18:32:47 2026 +0200
@@ -31,7 +31,7 @@
 #include <curses.h>
 #include <ctype.h>
 
-int prompt_yesno(char *msg) {
+int prompt_yesno(const char *msg) {
     addstr(msg);
     addstr(" (y/n)? ");
     clrtoeol();
--- a/src/input.h	Thu Sep 03 16:18:24 2026 +0200
+++ b/src/input.h	Thu Sep 03 18:32:47 2026 +0200
@@ -36,7 +36,7 @@
 extern "C" {
 #endif
 
-int prompt_yesno(char *msg);
+int prompt_yesno(const char *msg);
 
 /**
  * Asynchronous variant of getnstr().

mercurial