@@ -434,9 +434,9 @@ static void test_put_local_and_remote(void) {
434434 _z_source_info_t source_info = _z_source_info_null ();
435435
436436 // Session-local only delivery should not touch transport
437- z_result_t res = _z_write ( & g_session , & keyexpr , & payload , & encoding , Z_SAMPLE_KIND_PUT , Z_CONGESTION_CONTROL_BLOCK ,
438- Z_PRIORITY_DEFAULT , false , & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info ,
439- Z_LOCALITY_SESSION_LOCAL , NULL );
437+ z_result_t res =
438+ _z_write ( & g_session , & keyexpr , & payload , & encoding , Z_SAMPLE_KIND_PUT , Z_CONGESTION_CONTROL_BLOCK ,
439+ Z_PRIORITY_DEFAULT , false, & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info , Z_LOCALITY_SESSION_LOCAL );
440440 assert (res == _Z_RES_OK );
441441 assert (atomic_load_explicit (& g_local_put_delivery_count , memory_order_relaxed ) == 1 );
442442 assert (atomic_load_explicit (& g_network_send_count , memory_order_relaxed ) == 0 );
@@ -445,7 +445,7 @@ static void test_put_local_and_remote(void) {
445445 atomic_store_explicit (& g_local_put_delivery_count , 0 , memory_order_relaxed );
446446 atomic_store_explicit (& g_network_send_count , 0 , memory_order_relaxed );
447447 res = _z_write (& g_session , & keyexpr , & payload , & encoding , Z_SAMPLE_KIND_PUT , Z_CONGESTION_CONTROL_BLOCK ,
448- Z_PRIORITY_DEFAULT , false, & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info , Z_LOCALITY_ANY , NULL );
448+ Z_PRIORITY_DEFAULT , false, & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info , Z_LOCALITY_ANY );
449449 assert (res == _Z_RES_OK );
450450 assert (atomic_load_explicit (& g_local_put_delivery_count , memory_order_relaxed ) == 1 );
451451 assert (atomic_load_explicit (& g_network_send_count , memory_order_relaxed ) == 1 );
@@ -617,7 +617,7 @@ static void test_put_remote_only_destination(void) {
617617
618618 z_result_t res =
619619 _z_write (& g_session , & keyexpr , & payload , & encoding , Z_SAMPLE_KIND_PUT , Z_CONGESTION_CONTROL_BLOCK ,
620- Z_PRIORITY_DEFAULT , false, & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info , Z_LOCALITY_REMOTE , NULL );
620+ Z_PRIORITY_DEFAULT , false, & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info , Z_LOCALITY_REMOTE );
621621 assert (res == _Z_RES_OK );
622622 assert (atomic_load_explicit (& g_local_put_delivery_count , memory_order_relaxed ) == 0 );
623623 assert (atomic_load_explicit (& g_network_send_count , memory_order_relaxed ) == 1 );
@@ -653,7 +653,7 @@ static void test_subscriber_remote_only_origin(void) {
653653
654654 z_result_t res =
655655 _z_write (& g_session , & keyexpr , & payload , & encoding , Z_SAMPLE_KIND_PUT , Z_CONGESTION_CONTROL_BLOCK ,
656- Z_PRIORITY_DEFAULT , false, & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info , Z_LOCALITY_ANY , NULL );
656+ Z_PRIORITY_DEFAULT , false, & ts , NULL , Z_RELIABILITY_RELIABLE , & source_info , Z_LOCALITY_ANY );
657657 assert (res == _Z_RES_OK );
658658 assert (atomic_load_explicit (& g_local_put_delivery_count , memory_order_relaxed ) == 0 );
659659 assert (atomic_load_explicit (& g_network_send_count , memory_order_relaxed ) == 1 );
0 commit comments