diff options
author | jsing <> | 2014-04-25 04:02:04 +0000 |
---|---|---|
committer | jsing <> | 2014-04-25 04:02:04 +0000 |
commit | 1249140494b192a16d8a53f5a2fcdffffecfc903 (patch) | |
tree | c6650fc16129e886f9a6f889eec163429cb8e2b4 | |
parent | 4f7c928b5b2004ef8163870e4dc3fb4cdefdfcc3 (diff) | |
download | openbsd-1249140494b192a16d8a53f5a2fcdffffecfc903.tar.gz openbsd-1249140494b192a16d8a53f5a2fcdffffecfc903.tar.bz2 openbsd-1249140494b192a16d8a53f5a2fcdffffecfc903.zip |
Use const char *.
Suggested by miod@
-rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/ui/ui_lib.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index c19d894d4e..ee76e5e64d 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c | |||
@@ -388,7 +388,7 @@ UI_dup_error_string(UI *ui, const char *text) | |||
388 | char * | 388 | char * |
389 | UI_construct_prompt(UI *ui, const char *object_desc, const char *object_name) | 389 | UI_construct_prompt(UI *ui, const char *object_desc, const char *object_name) |
390 | { | 390 | { |
391 | char *format = "Enter %s for %s:"; | 391 | const char *format = "Enter %s for %s:"; |
392 | char *prompt; | 392 | char *prompt; |
393 | 393 | ||
394 | if (ui->meth->ui_construct_prompt) | 394 | if (ui->meth->ui_construct_prompt) |
diff --git a/src/lib/libssl/src/crypto/ui/ui_lib.c b/src/lib/libssl/src/crypto/ui/ui_lib.c index c19d894d4e..ee76e5e64d 100644 --- a/src/lib/libssl/src/crypto/ui/ui_lib.c +++ b/src/lib/libssl/src/crypto/ui/ui_lib.c | |||
@@ -388,7 +388,7 @@ UI_dup_error_string(UI *ui, const char *text) | |||
388 | char * | 388 | char * |
389 | UI_construct_prompt(UI *ui, const char *object_desc, const char *object_name) | 389 | UI_construct_prompt(UI *ui, const char *object_desc, const char *object_name) |
390 | { | 390 | { |
391 | char *format = "Enter %s for %s:"; | 391 | const char *format = "Enter %s for %s:"; |
392 | char *prompt; | 392 | char *prompt; |
393 | 393 | ||
394 | if (ui->meth->ui_construct_prompt) | 394 | if (ui->meth->ui_construct_prompt) |