lib: remove BT_NOTIFICATION_TYPE_{UNKNOWN,NR}
[babeltrace.git] / lib / graph / notification / notification.c
index 2b8c12d77ffcbacd2a503af35dbbc654885ab5ab..5a835092001e48528857b4d46d0b6ae32b5712e5 100644 (file)
@@ -49,7 +49,8 @@ void bt_notification_init(struct bt_notification *notification,
                bt_object_release_func release,
                struct bt_graph *graph)
 {
-       BT_ASSERT(type >= 0 && type < BT_NOTIFICATION_TYPE_NR);
+       BT_ASSERT(type >= 0 &&
+               type <= BT_NOTIFICATION_TYPE_PACKET_END);
        notification->type = type;
        init_seq_num(notification);
        bt_object_init_shared(&notification->base, release);
This page took 0.023899 seconds and 4 git commands to generate.