From 4a1fba74f3a05c5d925939e06d93e846004a149c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 17 Feb 2023 17:26:49 +0100 Subject: [PATCH] Update bay unit test --- test/unit/bay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/bay.c b/test/unit/bay.c index 56525f8..2030462 100644 --- a/test/unit/bay.c +++ b/test/unit/bay.c @@ -62,7 +62,7 @@ test_callback(struct bay *bay) die("bay_register failed\n"); int64_t data = 0; - if (bay_add_cb(bay, BAY_CB_DIRTY, &chan, callback, &data) != 0) + if (bay_add_cb(bay, BAY_CB_DIRTY, &chan, callback, &data, 1) == NULL) die("bay_add_cb failed\n"); if (data != 0)