X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcontainer_of%2Ftest%2Frun.c;h=96ef483c55879e36df948a82f5af847c0dee9df1;hp=8f86bc8da3a4db10eb53c32e9d6ee6590b8b9dcb;hb=578da7e7b6265153fa0519035fc52a086a711ac0;hpb=2eff9a654f86ec238ddda60f928dccfcd0767645;ds=sidebyside diff --git a/ccan/container_of/test/run.c b/ccan/container_of/test/run.c index 8f86bc8d..96ef483c 100644 --- a/ccan/container_of/test/run.c +++ b/ccan/container_of/test/run.c @@ -18,7 +18,7 @@ int main(int argc, char *argv[]) ok1(container_of_var(intp, &foo, a) == &foo); ok1(container_of_var(charp, &foo, b) == &foo); - ok1(container_off(intp, struct foo, a) == 0); - ok1(container_off(charp, struct foo, b) == offsetof(struct foo, b)); + ok1(container_off(struct foo, a) == 0); + ok1(container_off(struct foo, b) == offsetof(struct foo, b)); return exit_status(); }