Skip to content

Commit

Permalink
Untabify changes from previous patches
Browse files Browse the repository at this point in the history
  • Loading branch information
00pauln00 committed May 31, 2024
1 parent 50ab2c4 commit c8fe0e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/include/binary_hist.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static inline int
binary_hist_size(const struct binary_hist *bh)
{
if (!bh)
return -EINVAL;
return -EINVAL;

return bh->bh_num_buckets;
}
Expand Down
2 changes: 1 addition & 1 deletion src/include/raft_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ raft_net_client_user_id_to_string(const struct raft_net_client_user_id *rncui,
RAFT_NET_CLIENT_USER_ID_FMT_ARGS(rncui, uuid_str, 0));

if (rc < 0)
return rc;
return rc;

return ((size_t)rc > (out_string_len - 1)) ? -ENOSPC : 0;
}
Expand Down
4 changes: 2 additions & 2 deletions test/raft-reference-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,11 +1106,11 @@ raft_client_test_instance_hist_lreg_multi_facet_handler(
struct lreg_value *lv)
{
if (!lv || !rihs)
return -EINVAL;
return -EINVAL;

int hsz = binary_hist_size(&rihs->rihs_bh);
if (hsz < 0)
return hsz;
return hsz;

if (lv->lrv_value_idx_in >= (uint32_t)hsz)
return -EINVAL;
Expand Down

0 comments on commit c8fe0e3

Please sign in to comment.