Skip to content

Commit

Permalink
fix: run clang
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Nov 24, 2023
1 parent 5a0d72c commit fbdb6dd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/zenoh-pico/transport/raweth/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

#include <stdbool.h>

#include "zenoh-pico/protocol/core.h"
#include "zenoh-pico/system/link/raweth.h"
#include "zenoh-pico/transport/transport.h"
#include "zenoh-pico/utils/result.h"
#include "zenoh-pico/protocol/core.h"

#if Z_FEATURE_RAWETH_TRANSPORT == 1

Expand Down
2 changes: 1 addition & 1 deletion include/zenoh-pico/utils/result.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define ZENOH_PICO_UTILS_RESULT_H

#define _ZP_UNUSED(x) (void)(x)
#define _ZP_ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
#define _ZP_ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))

#define _Z_ERR_MESSAGE_MASK 0x88
#define _Z_ERR_ENTITY_MASK 0x90
Expand Down
6 changes: 3 additions & 3 deletions src/transport/raweth/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const uint8_t _ZP_RAWETH_CFG_SMAC[_ZP_MAC_ADDR_LENGTH] = {0x30, 0x03, 0xc8, 0x37

// Should be generated
const _zp_raweth_cfg_entry _ZP_RAWETH_CFG_ARRAY[] = {
{{0, {0}, ""}, 0x00, {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}, false}, // Default mac addr
{{0, {0},"some/key/expr"}, 0x8c, {0x00, 0x11, 0x22, 0x33, 0x44, 0x55}, true}, // entry1
{{0, {0},"another/keyexpr"}, 0x43, {0x01, 0x23, 0x45, 0x67, 0x89, 0xab}, true}, // entry2
{{0, {0}, ""}, 0x00, {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}, false}, // Default mac addr
{{0, {0}, "some/key/expr"}, 0x8c, {0x00, 0x11, 0x22, 0x33, 0x44, 0x55}, true}, // entry1
{{0, {0}, "another/keyexpr"}, 0x43, {0x01, 0x23, 0x45, 0x67, 0x89, 0xab}, true}, // entry2
};

// Don't modify
Expand Down
8 changes: 4 additions & 4 deletions src/transport/raweth/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,17 +225,17 @@ int8_t _z_raweth_send_n_msg(_z_session_t *zn, const _z_network_message_t *n_msg,
switch (n_msg->_tag) {
case _Z_N_PUSH:
keyexpr = &n_msg->_body._push._key;
break;
break;
case _Z_N_REQUEST:
keyexpr = &n_msg->_body._request._key;
break;
break;
case _Z_N_RESPONSE:
keyexpr = &n_msg->_body._response._key;
break;
break;
case _Z_N_RESPONSE_FINAL:
case _Z_N_DECLARE:
default:
break;
break;
}
// Set socket info
_zp_raweth_set_socket(keyexpr, &ztm->_link._socket._raweth);
Expand Down

0 comments on commit fbdb6dd

Please sign in to comment.