Rename mg_log_set_fn properly

This commit is contained in:
Sergey Lyubka 2022-06-19 09:08:37 +01:00
parent 9760b7c9d6
commit 2d5c26d44f
2 changed files with 2 additions and 2 deletions

View File

@ -2259,7 +2259,7 @@ static void default_logger(unsigned char c) {
static const char *s_spec = "2";
static void (*s_log_func)(unsigned char) = default_logger;
void mg_log_set_callback(void (*fn)(unsigned char)) {
void mg_log_set_fn(void (*fn)(unsigned char)) {
s_log_func = fn;
}

View File

@ -8,7 +8,7 @@ static void default_logger(unsigned char c) {
static const char *s_spec = "2";
static void (*s_log_func)(unsigned char) = default_logger;
void mg_log_set_callback(void (*fn)(unsigned char)) {
void mg_log_set_fn(void (*fn)(unsigned char)) {
s_log_func = fn;
}