X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fsession-config.c;h=b1fa992fe0f65c02f922ea99d4d6d3c632d23b1c;hb=951943334c5e8a1e612747c8787c3fec6c065af7;hp=8e5410c3f3b7971016e5f6e130f319703c8e997a;hpb=6bd61b9632ee566bcc7c274c07a9546c6852ab59;p=lttng-tools.git diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c index 8e5410c3f..b1fa992fe 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -177,7 +177,7 @@ const char * const config_loglevel_type_single = "SINGLE"; const char * const config_event_type_all = "ALL"; const char * const config_event_type_tracepoint = "TRACEPOINT"; const char * const config_event_type_probe = "PROBE"; -const char * const config_event_type_userspace_probe = "USERSPACE_PROBE"; +LTTNG_HIDDEN const char * const config_event_type_userspace_probe = "USERSPACE_PROBE"; const char * const config_event_type_function = "FUNCTION"; const char * const config_event_type_function_entry = "FUNCTION_ENTRY"; const char * const config_event_type_noop = "NOOP"; @@ -250,7 +250,7 @@ int config_get_section_entries(const char *override_path, const char *section, config_entry_handler_cb handler, void *user_data) { int ret = 0; - char *path; + const char *path; FILE *config_file = NULL; struct handler_filter_args filter = { section, handler, user_data }; @@ -3532,7 +3532,7 @@ int config_load_session(const char *path, const char *session_name, } if (!path) { - char *home_path; + const char *home_path; const char *sys_path; /* Try home path */