Skip to content

Commit

Permalink
null removed
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Feb 29, 2024
1 parent 5f56aac commit 05ead71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/zenoh_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -2653,7 +2653,7 @@ ZENOHC_API bool zc_payload_check(const struct zc_owned_payload_t *payload);
ZENOHC_API void zc_payload_drop(struct zc_owned_payload_t *payload);
/**
* Constructs `zc_owned_payload_t`'s gravestone value.
* tags{c.zc_payload_null, api.buffer.create.empty}
* tags{}
*/
ZENOHC_API struct zc_owned_payload_t zc_payload_null(void);
/**
Expand Down
2 changes: 1 addition & 1 deletion src/commons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub extern "C" fn zc_payload_drop(payload: &mut zc_owned_payload_t) {
unsafe { std::ptr::replace(payload, zc_payload_null()) };
}
/// Constructs `zc_owned_payload_t`'s gravestone value.
/// tags{c.zc_payload_null, api.buffer.create.empty}
/// tags{}
#[no_mangle]
pub extern "C" fn zc_payload_null() -> zc_owned_payload_t {
zc_owned_payload_t {
Expand Down

0 comments on commit 05ead71

Please sign in to comment.