projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Notification iterator: transform precondition checks to BT_ASSERT_PRE()
[babeltrace.git]
/
tests
/
lib
/
test_bt_notification_heap.c
diff --git
a/tests/lib/test_bt_notification_heap.c
b/tests/lib/test_bt_notification_heap.c
index d4767b1b93f5e7b0401777079756373480e615c0..531ddf680464a4aa3ab6b4173ff52956bd275bdd 100644
(file)
--- a/
tests/lib/test_bt_notification_heap.c
+++ b/
tests/lib/test_bt_notification_heap.c
@@
-45,8
+45,7
@@
void bt_notification_init(struct bt_notification *notification,
enum bt_notification_type type,
bt_object_release_func release)
{
enum bt_notification_type type,
bt_object_release_func release)
{
- assert(type > BT_NOTIFICATION_TYPE_ALL &&
- type < BT_NOTIFICATION_TYPE_NR);
+ assert(type > 0 && type < BT_NOTIFICATION_TYPE_NR);
notification->type = type;
bt_object_init(¬ification->base, release);
}
notification->type = type;
bt_object_init(¬ification->base, release);
}
This page took
0.023425 seconds
and
4
git commands to generate.