projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Values API: standardize parameters and return values
[babeltrace.git]
/
plugins
/
ctf
/
fs-src
/
query.c
diff --git
a/plugins/ctf/fs-src/query.c
b/plugins/ctf/fs-src/query.c
index eef9e9ee0f7809cf97d2f12452d424bc3f9a56c5..2a587d7b97715790059b8d5da855241f7c68e9c7 100644
(file)
--- a/
plugins/ctf/fs-src/query.c
+++ b/
plugins/ctf/fs-src/query.c
@@
-81,12
+81,7
@@
struct bt_component_class_query_method_return metadata_info_query(
}
path_value = bt_value_map_borrow_entry_value(params, "path");
}
path_value = bt_value_map_borrow_entry_value(params, "path");
- ret = bt_value_string_get(path_value, &path);
- if (ret) {
- BT_LOGE_STR("Cannot get `path` string parameter.");
- query_ret.status = BT_QUERY_STATUS_INVALID_PARAMS;
- goto error;
- }
+ path = bt_value_string_get(path_value);
BT_ASSERT(path);
metadata_fp = ctf_fs_metadata_open_file(path);
BT_ASSERT(path);
metadata_fp = ctf_fs_metadata_open_file(path);
@@
-499,12
+494,7
@@
struct bt_component_class_query_method_return trace_info_query(
}
path_value = bt_value_map_borrow_entry_value(params, "path");
}
path_value = bt_value_map_borrow_entry_value(params, "path");
- ret = bt_value_string_get(path_value, &path);
- if (ret) {
- BT_LOGE("Cannot get `path` string parameter.");
- query_ret.status = BT_QUERY_STATUS_INVALID_PARAMS;
- goto error;
- }
+ path = bt_value_string_get(path_value);
normalized_path = bt_common_normalize_path(path, NULL);
if (!normalized_path) {
normalized_path = bt_common_normalize_path(path, NULL);
if (!normalized_path) {
This page took
0.038674 seconds
and
4
git commands to generate.