Skip to content

Commit

Permalink
C99 uses the explicit way
Browse files Browse the repository at this point in the history
  • Loading branch information
cguimaraes committed Jul 6, 2023
1 parent 67b6a5e commit 22104ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/unix/c99/z_ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ int main(int argc, char** argv) {
_z_mutex_unlock(&mutex);
z_free(results);
z_free(data);
z_drop(z_subscriber_move(&sub));
z_drop(z_publisher_move(&pub));
z_undeclare_subscriber(z_subscriber_move(&sub));
z_undeclare_publisher(z_publisher_move(&pub));

zp_stop_read_task(z_loan(s));
zp_stop_lease_task(z_loan(s));
Expand Down
2 changes: 1 addition & 1 deletion examples/unix/c99/z_pong.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main(int argc, char** argv) {
while (getchar() != 'q') {
}

z_drop(z_subscriber_move(&sub));
z_undeclare_subscriber(z_subscriber_move(&sub));

zp_stop_read_task(z_loan(s));
zp_stop_lease_task(z_loan(s));
Expand Down

0 comments on commit 22104ab

Please sign in to comment.