util/mkerr.pl: make it not depend on the function code
[openssl.git] / crypto / ui / ui_err.c
index 7d6352b25baa85fadf386c7f5e5f273350906bec..2b564f71beb9e52019a243bab1b3246235df183f 100644 (file)
@@ -39,7 +39,7 @@ static const ERR_STRING_DATA UI_str_reasons[] = {
 int ERR_load_UI_strings(void)
 {
 #ifndef OPENSSL_NO_ERR
-    if (ERR_func_error_string(UI_str_reasons[0].error) == NULL)
+    if (ERR_reason_error_string(UI_str_reasons[0].error) == NULL)
         ERR_load_strings_const(UI_str_reasons);
 #endif
     return 1;