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.
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 989228b..28f7549 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -101,7 +101,7 @@
 	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) */
diff --git a/src/logging.c b/src/logging.c
index 1ab8767..eed0b26 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -740,14 +740,15 @@
 
 	/* copy over the user part */
 	for (i = 0; i < inf->num_cat; i++) {
-		memcpy(&osmo_log_info->cat[i], &inf->cat[i],
+		memcpy((struct log_info_cat *) &osmo_log_info->cat[i],
+			&inf->cat[i],
 			sizeof(struct log_info_cat));
 	}
 
 	/* copy over the library part */
 	for (i = 0; i < ARRAY_SIZE(internal_cat); i++) {
 		unsigned int cn = osmo_log_info->num_cat_user + i;
-		memcpy(&osmo_log_info->cat[cn],
+		memcpy((struct log_info_cat *) &osmo_log_info->cat[cn],
 			&internal_cat[i], sizeof(struct log_info_cat));
 	}