aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 10:31:29 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 10:31:29 +0200
commit06f645542cc9ca4e881eb3c0a441b510866a1a9f (patch)
tree447677b7c03a93163ce6bf8855f4e023da75297a /include/osmocom
parente92866bbb1aade3eead0dc6169d26e0b7b30a605 (diff)
logging: Mark the log_info_cat pointer as consts
Applications should keep the log area in a static const area. Mark the pointer as const to address compiler warnings in OpenBSC, cast the const away for the osmo_log_info as it is not declared as const.
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/core/logging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 989228b9..28f7549d 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) */