projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: test all close/fclose ret val, fix double close
[babeltrace.git]
/
formats
/
bt-dummy
/
bt-dummy.c
diff --git
a/formats/bt-dummy/bt-dummy.c
b/formats/bt-dummy/bt-dummy.c
index 94edc3be83742ec82b672f157f8678df1670f446..cb912a37d153e02650ccc9c90513680c6bf7f67b 100644
(file)
--- a/
formats/bt-dummy/bt-dummy.c
+++ b/
formats/bt-dummy/bt-dummy.c
@@
-50,12
+50,13
@@
struct trace_descriptor *bt_dummy_open_trace(const char *path, int flags,
}
static
}
static
-
void
bt_dummy_close_trace(struct trace_descriptor *td)
+
int
bt_dummy_close_trace(struct trace_descriptor *td)
{
struct ctf_text_stream_pos *pos =
container_of(td, struct ctf_text_stream_pos,
trace_descriptor);
free(pos);
{
struct ctf_text_stream_pos *pos =
container_of(td, struct ctf_text_stream_pos,
trace_descriptor);
free(pos);
+ return 0;
}
static
}
static
This page took
0.022864 seconds
and
4
git commands to generate.