X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.c;h=0bfe4e3f6e03e3f795f6d3d9057edd69950ef363;hb=98120c2f74691bfe11b47883f27c431d4b9b1de8;hp=d8bcf4a6244db0b359e164a9b328dfe77cd87847;hpb=619fd0273195809d9bc1e1d36814307957303e8e;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index d8bcf4a..0bfe4e3 100644 --- a/ui.c +++ b/ui.c @@ -305,7 +305,7 @@ statusline_askchoice(const char *msg, const char *choices, short dflt) } char * -ui_readline(char *prompt, char *s, size_t limit, bool use_completion) +ui_readline(const char *prompt, char *s, size_t limit, bool use_completion) { int y, x; char *ret; @@ -326,7 +326,7 @@ ui_readline(char *prompt, char *s, size_t limit, bool use_completion) } int -statusline_ask_boolean(char *msg, int def) +statusline_ask_boolean(const char *msg, int def) { int ret; char *msg2 = strconcat(msg, def ? _(" (Y/n)?") : _(" (y/N)?"), NULL); @@ -362,7 +362,7 @@ refresh_statusline() } char * -ask_filename(char *prompt) +ask_filename(const char *prompt) { char *buf = NULL;