Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some examples
Browse files Browse the repository at this point in the history
erlingrj committed Nov 14, 2024

Verified

This commit was signed with the committer’s verified signature.
zackkatz Zack Katz
1 parent 72d4114 commit cfa6393
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ if(NETWORK_CHANNEL_TCP_POSIX)
endif()

target_compile_options(reactor-uc PRIVATE -Wall -Wextra -Werror)
target_compile_options(reactor-uc PUBLIC -Wno-zero-length-bounds)


add_compile_options (-fdiagnostics-color=always)
2 changes: 1 addition & 1 deletion examples/posix/federated/sender.c
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ typedef struct {

REACTOR_CTOR_SIGNATURE(MainSender) {
FEDERATE_CTOR_PREAMBLE();
INITIALIZE_CHILD_REACTOR_WITH_PARAMETERS(Sender, sender, self->_conns_sender_out_out, 1);
INITIALIZE_CHILD_REACTOR_WITH_PARAMETERS(Sender, sender, self->_conns_sender_out, 1);
INITIALIZE_FEDERATED_CONNECTION_BUNDLE(Sender, Receiver);
BUNDLE_REGISTER_UPSTREAM(Sender, Receiver, sender, out);
REACTOR_CTOR(MainSender);
Original file line number Diff line number Diff line change
@@ -146,7 +146,7 @@ REACTOR_CTOR_SIGNATURE(MainSender) {
FEDERATE_CTOR_PREAMBLE();
REACTOR_CTOR(MainSender);

INITIALIZE_CHILD_REACTOR_WITH_PARAMETERS(Sender, sender, self->_conns_sender_out_out, 2);
INITIALIZE_CHILD_REACTOR_WITH_PARAMETERS(Sender, sender, self->_conns_sender_out, 2);
INITIALIZE_FEDERATED_CONNECTION_BUNDLE(Sender, Receiver1);
INITIALIZE_FEDERATED_CONNECTION_BUNDLE(Sender, Receiver2);

0 comments on commit cfa6393

Please sign in to comment.