Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Jun 17, 2024
1 parent 849467a commit 5cc1424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/z_pub_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int main(int argc, char **argv) {
if (z_check(shm_buf)) {
{
uint8_t *buf = z_shm_mut_data_mut(z_loan_mut(shm_buf));
sprintf((char*)buf, "SHM [%4d] %s", idx, value);
sprintf((char *)buf, "SHM [%4d] %s", idx, value);
printf("Putting Data ('%s': '%s')...\n", keyexpr, buf);
}

Expand Down
14 changes: 7 additions & 7 deletions tests/z_api_payload_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ void test_slice() {
z_drop(z_move(out2));
}

#define TEST_ARITHMETIC(TYPE, EXT, VAL) \
{ \
TYPE in = VAL, out; \
z_owned_bytes_t payload; \
z_bytes_serialize_from_##EXT(&payload, in); \
#define TEST_ARITHMETIC(TYPE, EXT, VAL) \
{ \
TYPE in = VAL, out; \
z_owned_bytes_t payload; \
z_bytes_serialize_from_##EXT(&payload, in); \
z_bytes_deserialize_into_##EXT(z_loan(payload), &out); \
assert(in == out); \
z_drop(z_move(payload)); \
assert(in == out); \
z_drop(z_move(payload)); \
}

void test_arithmetic() {
Expand Down

0 comments on commit 5cc1424

Please sign in to comment.