From: jsing Date: Fri, 25 Apr 2014 04:02:04 +0000 (+0000) Subject: Use const char *. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=005a942c68edc354bc2e93f82f53a0af428b4654;p=openbsd Use const char *. Suggested by miod@ --- diff --git a/lib/libcrypto/ui/ui_lib.c b/lib/libcrypto/ui/ui_lib.c index c19d894d4eb..ee76e5e64d2 100644 --- a/lib/libcrypto/ui/ui_lib.c +++ b/lib/libcrypto/ui/ui_lib.c @@ -388,7 +388,7 @@ UI_dup_error_string(UI *ui, const char *text) char * UI_construct_prompt(UI *ui, const char *object_desc, const char *object_name) { - char *format = "Enter %s for %s:"; + const char *format = "Enter %s for %s:"; char *prompt; if (ui->meth->ui_construct_prompt) diff --git a/lib/libssl/src/crypto/ui/ui_lib.c b/lib/libssl/src/crypto/ui/ui_lib.c index c19d894d4eb..ee76e5e64d2 100644 --- a/lib/libssl/src/crypto/ui/ui_lib.c +++ b/lib/libssl/src/crypto/ui/ui_lib.c @@ -388,7 +388,7 @@ UI_dup_error_string(UI *ui, const char *text) char * UI_construct_prompt(UI *ui, const char *object_desc, const char *object_name) { - char *format = "Enter %s for %s:"; + const char *format = "Enter %s for %s:"; char *prompt; if (ui->meth->ui_construct_prompt)