[libosmocore PATCH] logging: accept a constant log_info_cat structure in log_info.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Diego Elio Pettenò flameeyes at flameeyes.eu
Wed Jul 4 21:42:15 UTC 2012


This allows to use a statically-defined category (found in
libosmo-sccp's tests).

Signed-off-by: Diego Elio Pettenò <flameeyes at flameeyes.eu>
---
 include/osmocom/core/logging.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 76be100..ff456c2 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -101,7 +101,7 @@ struct log_info {
 	log_filter *filter_fn;
 
 	/*! \brief per-category information */
-	struct log_info_cat *cat;
+	const struct log_info_cat *cat;
 	/*! \brief total number of categories */
 	unsigned int num_cat;
 	/*! \brief total number of user categories (not library) */
-- 
1.7.8.6





More information about the OpenBSC mailing list