Skip to content

Commit

Permalink
move this fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed Jan 15, 2024
1 parent b7132f5 commit 78885f5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion include/zenoh-pico/api/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ struct _z_bytes_pair_t {
_z_bytes_t value;
};

void _z_bytes_pair_clear(struct _z_bytes_pair_t *this);
void _z_bytes_pair_clear(struct _z_bytes_pair_t *this_);

_Z_ELEM_DEFINE(_z_bytes_pair, struct _z_bytes_pair_t, _z_noop_size, _z_bytes_pair_clear, _z_noop_copy)
_Z_LIST_DEFINE(_z_bytes_pair, struct _z_bytes_pair_t)
Expand Down
6 changes: 3 additions & 3 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,9 @@ int8_t zp_send_join(z_session_t zs, const zp_send_join_options_t *options) {
return _zp_send_join(zs._val);
}

void _z_bytes_pair_clear(struct _z_bytes_pair_t *this) {
_z_bytes_clear(&this->key);
_z_bytes_clear(&this->value);
void _z_bytes_pair_clear(struct _z_bytes_pair_t *this_) {
_z_bytes_clear(&this_->key);
_z_bytes_clear(&this_->value);
}

z_attachment_t z_bytes_map_as_attachment(const z_owned_bytes_map_t *this_) {
Expand Down
12 changes: 6 additions & 6 deletions src/collections/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,23 @@ _z_list_t *_z_list_drop_filter(_z_list_t *xs, z_element_free_f f_f, z_element_eq

while (current != NULL) {
if (c_f(left, current->_val) == true) {
_z_list_t *this = current;
_z_list_t *this_ = current;

// head removal
if (this == l) {
if (this_ == l) {
l = l->_tail;
}
// tail removal
else if (this->_tail == NULL) {
else if (this_->_tail == NULL) {
previous->_tail = NULL;
}
// middle removal
else {
previous->_tail = this->_tail;
previous->_tail = this_->_tail;
}

f_f(&this->_val);
z_free(this);
f_f(&this_->_val);
z_free(this_);
break;
} else {
previous = current;
Expand Down
2 changes: 1 addition & 1 deletion src/session/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "zenoh-pico/system/platform.h"
#include "zenoh-pico/utils/logging.h"

_Bool _z_resource_eq(const _z_resource_t *other, const _z_resource_t *this) { return this->_id == other->_id; }
_Bool _z_resource_eq(const _z_resource_t *other, const _z_resource_t *this_) { return this_->_id == other->_id; }

void _z_resource_clear(_z_resource_t *res) { _z_keyexpr_clear(&res->_key); }

Expand Down
4 changes: 2 additions & 2 deletions src/session/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include "zenoh-pico/utils/logging.h"

#if Z_FEATURE_SUBSCRIPTION == 1
_Bool _z_subscription_eq(const _z_subscription_t *other, const _z_subscription_t *this) {
return this->_id == other->_id;
_Bool _z_subscription_eq(const _z_subscription_t *other, const _z_subscription_t *this_) {
return this_->_id == other->_id;
}

void _z_subscription_clear(_z_subscription_t *sub) {
Expand Down

0 comments on commit 78885f5

Please sign in to comment.