lib: make values API const-correct
[babeltrace.git] / plugins / text / pretty / print.c
index 49bb3ff26f3036975670fb7023025d61d8a9a373..83579b88b05fe20d5571b2d79e13e575170ac74f 100644 (file)
@@ -362,7 +362,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_hostname_field) {
-               struct bt_value *hostname_str;
+               const struct bt_value *hostname_str;
 
                hostname_str = bt_trace_borrow_environment_entry_value_by_name(
                        trace_class, "hostname");
@@ -381,7 +381,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_domain_field) {
-               struct bt_value *domain_str;
+               const struct bt_value *domain_str;
 
                domain_str = bt_trace_borrow_environment_entry_value_by_name(
                        trace_class, "domain");
@@ -402,7 +402,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_procname_field) {
-               struct bt_value *procname_str;
+               const struct bt_value *procname_str;
 
                procname_str = bt_trace_borrow_environment_entry_value_by_name(
                        trace_class, "procname");
@@ -423,7 +423,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_vpid_field) {
-               struct bt_value *vpid_value;
+               const struct bt_value *vpid_value;
 
                vpid_value = bt_trace_borrow_environment_entry_value_by_name(
                        trace_class, "vpid");
This page took 0.023403 seconds and 4 git commands to generate.