projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: fix string octal encoding
[babeltrace.git]
/
lib
/
context.c
diff --git
a/lib/context.c
b/lib/context.c
index b728298cb799c43f16300238004ccc29633ecf43..dc7736689170e10da3ba1164f543c79e334fdbe3 100644
(file)
--- a/
lib/context.c
+++ b/
lib/context.c
@@
-67,13
+67,13
@@
struct bt_context *bt_context_create(void)
int bt_context_add_trace(struct bt_context *ctx, const char *path,
const char *format_name,
int bt_context_add_trace(struct bt_context *ctx, const char *path,
const char *format_name,
- void (*packet_seek)(struct stream_pos *pos, size_t index,
+ void (*packet_seek)(struct
bt_
stream_pos *pos, size_t index,
int whence),
int whence),
- struct mmap_stream_list *stream_list,
+ struct
bt_
mmap_stream_list *stream_list,
FILE *metadata)
{
FILE *metadata)
{
- struct trace_descriptor *td;
- struct format *fmt;
+ struct
bt_
trace_descriptor *td;
+ struct
bt_
format *fmt;
struct bt_trace_handle *handle;
int ret, closeret;
struct bt_trace_handle *handle;
int ret, closeret;
@@
-107,7
+107,7
@@
int bt_context_add_trace(struct bt_context *ctx, const char *path,
/* Create an handle for the trace */
handle = bt_trace_handle_create(ctx);
/* Create an handle for the trace */
handle = bt_trace_handle_create(ctx);
- if (
handle < 0
) {
+ if (
!handle
) {
fprintf(stderr, "[error] [Context] Creating trace handle %s .\n\n",
path);
ret = -1;
fprintf(stderr, "[error] [Context] Creating trace handle %s .\n\n",
path);
ret = -1;
This page took
0.02334 seconds
and
4
git commands to generate.