From 005a942c68edc354bc2e93f82f53a0af428b4654 Mon Sep 17 00:00:00 2001 From: jsing Date: Fri, 25 Apr 2014 04:02:04 +0000 Subject: [PATCH] Use const char *. Suggested by miod@ --- lib/libcrypto/ui/ui_lib.c | 2 +- lib/libssl/src/crypto/ui/ui_lib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.20.1