Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Oct 1, 2024
1 parent 0895935 commit 7a62ac5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/zenoh_concrete.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define Z_ENULL -5
#define Z_EUNAVAILABLE -6
#define Z_EDESERIALIZE -7
#define Z_SESSION_CLOSED -8
#define Z_ESESSION_CLOSED -8
#define Z_EBUSY_MUTEX -16
#define Z_EINVAL_MUTEX -22
#define Z_EAGAIN_MUTEX -11
Expand Down
2 changes: 1 addition & 1 deletion src/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ pub unsafe extern "C" fn z_get(
.wait()
{
Ok(()) => result::Z_OK,
Err(e) if e.downcast_ref::<SessionClosedError>().is_some() => result::Z_SESSION_CLOSED,
Err(e) if e.downcast_ref::<SessionClosedError>().is_some() => result::Z_ESESSION_CLOSED,
Err(e) => {
tracing::error!("{}", e);
result::Z_EGENERIC
Expand Down
2 changes: 1 addition & 1 deletion src/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub unsafe extern "C" fn z_publisher_put(

match put.wait() {
Ok(_) => result::Z_OK,
Err(e) if e.downcast_ref::<SessionClosedError>().is_some() => result::Z_SESSION_CLOSED,
Err(e) if e.downcast_ref::<SessionClosedError>().is_some() => result::Z_ESESSION_CLOSED,
Err(e) => {
tracing::error!("{}", e);
result::Z_EGENERIC
Expand Down
2 changes: 1 addition & 1 deletion src/put.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub extern "C" fn z_put(
}
match put.wait() {
Ok(_) => result::Z_OK,
Err(e) if e.downcast_ref::<SessionClosedError>().is_some() => result::Z_SESSION_CLOSED,
Err(e) if e.downcast_ref::<SessionClosedError>().is_some() => result::Z_ESESSION_CLOSED,
Err(e) => {
tracing::error!("{}", e);
result::Z_EGENERIC
Expand Down
2 changes: 1 addition & 1 deletion src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub const Z_ENETWORK: z_result_t = -4;
pub const Z_ENULL: z_result_t = -5;
pub const Z_EUNAVAILABLE: z_result_t = -6;
pub const Z_EDESERIALIZE: z_result_t = -7;
pub const Z_SESSION_CLOSED: z_result_t = -8;
pub const Z_ESESSION_CLOSED: z_result_t = -8;
// negative pthread error codes (due to convention to return negative values on error)
pub const Z_EBUSY_MUTEX: z_result_t = -16;
pub const Z_EINVAL_MUTEX: z_result_t = -22;
Expand Down

0 comments on commit 7a62ac5

Please sign in to comment.