commit | 52da51d79edb7a0a298b1946988474ab16c48c4d | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Jan 30 16:09:19 2024 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Jan 30 16:09:19 2024 +0100 |
tree | aa64403b43d7571bd239c51fe6d9808577738519 | |
parent | af4a5db16d97b0a1adf4efcb697d10f94086ab7e [diff] [blame] |
log UPDATE return previous temp log opts
diff --git a/src/log.c b/src/log.c index 41c8e90..f66873d 100644 --- a/src/log.c +++ b/src/log.c
@@ -409,10 +409,14 @@ return prev; } -LIBYANG_API_DEF void +LIBYANG_API_DEF uint32_t * ly_temp_log_options(uint32_t *opts) { + uint32_t *prev_lo = temp_ly_log_opts; + temp_ly_log_opts = opts; + + return prev_lo; } LIBYANG_API_DEF uint32_t