projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: fix cppcheck warnings
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index 37e314849c611844065e0605ef7fa3dbfafabce9..8029512a2745876f9ce19e9ce1fab725fb64ddf7 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-583,11
+583,11
@@
int ctf_init_pos(struct ctf_stream_pos *pos, int fd, int open_flags)
int ctf_fini_pos(struct ctf_stream_pos *pos)
{
int ctf_fini_pos(struct ctf_stream_pos *pos)
{
- int ret;
-
if (pos->prot == PROT_WRITE && pos->content_size_loc)
*pos->content_size_loc = pos->offset;
if (pos->base_mma) {
if (pos->prot == PROT_WRITE && pos->content_size_loc)
*pos->content_size_loc = pos->offset;
if (pos->base_mma) {
+ int ret;
+
/* unmap old base */
ret = munmap_align(pos->base_mma);
if (ret) {
/* unmap old base */
ret = munmap_align(pos->base_mma);
if (ret) {
@@
-1940,9
+1940,11
@@
static
int ctf_close_trace(struct trace_descriptor *tdp)
{
struct ctf_trace *td = container_of(tdp, struct ctf_trace, parent);
int ctf_close_trace(struct trace_descriptor *tdp)
{
struct ctf_trace *td = container_of(tdp, struct ctf_trace, parent);
- int
i,
ret;
+ int ret;
if (td->streams) {
if (td->streams) {
+ int i;
+
for (i = 0; i < td->streams->len; i++) {
struct ctf_stream_declaration *stream;
int j;
for (i = 0; i < td->streams->len; i++) {
struct ctf_stream_declaration *stream;
int j;
This page took
0.023448 seconds
and
4
git commands to generate.