diff options
| author | jsing <> | 2014-04-18 05:37:44 +0000 |
|---|---|---|
| committer | jsing <> | 2014-04-18 05:37:44 +0000 |
| commit | 81ed8f28b34f84ae146b524fb7a4e3594a87b0e6 (patch) | |
| tree | fc08a86c3d277a550737fd859bfcfb80547a2c6b /src/lib/libcrypto/ui/ui_err.c | |
| parent | a14672d9767d4c89c9ce11d948833cf242bbd50b (diff) | |
| download | openbsd-81ed8f28b34f84ae146b524fb7a4e3594a87b0e6.tar.gz openbsd-81ed8f28b34f84ae146b524fb7a4e3594a87b0e6.tar.bz2 openbsd-81ed8f28b34f84ae146b524fb7a4e3594a87b0e6.zip | |
More KNF.
Diffstat (limited to 'src/lib/libcrypto/ui/ui_err.c')
| -rw-r--r-- | src/lib/libcrypto/ui/ui_err.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ui/ui_err.c b/src/lib/libcrypto/ui/ui_err.c index a9b22e2e57..e8b841eb0d 100644 --- a/src/lib/libcrypto/ui/ui_err.c +++ b/src/lib/libcrypto/ui/ui_err.c | |||
| @@ -68,8 +68,7 @@ | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0) | 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0) |
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason) | 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason) |
| 70 | 70 | ||
| 71 | static ERR_STRING_DATA UI_str_functs[] = | 71 | static ERR_STRING_DATA UI_str_functs[] = { |
| 72 | { | ||
| 73 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"}, | 72 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"}, |
| 74 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"}, | 73 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"}, |
| 75 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"}, | 74 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"}, |
| @@ -85,8 +84,7 @@ static ERR_STRING_DATA UI_str_functs[] = | |||
| 85 | {0, NULL} | 84 | {0, NULL} |
| 86 | }; | 85 | }; |
| 87 | 86 | ||
| 88 | static ERR_STRING_DATA UI_str_reasons[] = | 87 | static ERR_STRING_DATA UI_str_reasons[] = { |
| 89 | { | ||
| 90 | {ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS), "common ok and cancel characters"}, | 88 | {ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS), "common ok and cancel characters"}, |
| 91 | {ERR_REASON(UI_R_INDEX_TOO_LARGE), "index too large"}, | 89 | {ERR_REASON(UI_R_INDEX_TOO_LARGE), "index too large"}, |
| 92 | {ERR_REASON(UI_R_INDEX_TOO_SMALL), "index too small"}, | 90 | {ERR_REASON(UI_R_INDEX_TOO_SMALL), "index too small"}, |
| @@ -99,11 +97,10 @@ static ERR_STRING_DATA UI_str_reasons[] = | |||
| 99 | 97 | ||
| 100 | #endif | 98 | #endif |
| 101 | 99 | ||
| 102 | void | 100 | void |
| 103 | ERR_load_UI_strings(void) | 101 | ERR_load_UI_strings(void) |
| 104 | { | 102 | { |
| 105 | #ifndef OPENSSL_NO_ERR | 103 | #ifndef OPENSSL_NO_ERR |
| 106 | |||
| 107 | if (ERR_func_error_string(UI_str_functs[0].error) == NULL) { | 104 | if (ERR_func_error_string(UI_str_functs[0].error) == NULL) { |
| 108 | ERR_load_strings(0, UI_str_functs); | 105 | ERR_load_strings(0, UI_str_functs); |
| 109 | ERR_load_strings(0, UI_str_reasons); | 106 | ERR_load_strings(0, UI_str_reasons); |
