projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: use of spaces instead of tabs in babeltrace.i.in
[babeltrace.git]
/
lib
/
iterator.c
diff --git
a/lib/iterator.c
b/lib/iterator.c
index d2464ab7c4f8274e2fadee6e70a6f8a51f76dcc4..4ee0d5d22d454394075e3e3e68c2051d1c9202ba 100644
(file)
--- a/
lib/iterator.c
+++ b/
lib/iterator.c
@@
-615,14
+615,11
@@
error:
return NULL;
}
return NULL;
}
-struct bt_iter_pos *bt_iter_create_time_pos(struct bt_iter *
iter
,
+struct bt_iter_pos *bt_iter_create_time_pos(struct bt_iter *
unused
,
uint64_t timestamp)
{
struct bt_iter_pos *pos;
uint64_t timestamp)
{
struct bt_iter_pos *pos;
- if (!iter)
- return NULL;
-
pos = g_new0(struct bt_iter_pos, 1);
pos->type = BT_SEEK_TIME;
pos->u.seek_time = timestamp;
pos = g_new0(struct bt_iter_pos, 1);
pos->type = BT_SEEK_TIME;
pos->u.seek_time = timestamp;
@@
-720,7
+717,7
@@
int bt_iter_init(struct bt_iter *iter,
int i;
int ret = 0;
int i;
int ret = 0;
- if (!iter || !ctx)
+ if (!iter || !ctx
|| !ctx->tc || !ctx->tc->array
)
return -EINVAL;
if (ctx->current_iterator) {
return -EINVAL;
if (ctx->current_iterator) {
This page took
0.02466 seconds
and
4
git commands to generate.