Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some indentation issues #224

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/link/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,22 +298,22 @@ int8_t _z_endpoint_config_from_str(_z_str_intmap_t *strint, const char *str, con
} else
#endif
#if Z_LINK_UDP_UNICAST == 1 || Z_LINK_UDP_MULTICAST == 1
if (_z_str_eq(proto, UDP_SCHEMA) == true) {
if (_z_str_eq(proto, UDP_SCHEMA) == true) {
ret = _z_udp_config_from_str(strint, p_start);
} else
#endif
#if Z_LINK_BLUETOOTH == 1
if (_z_str_eq(proto, BT_SCHEMA) == true) {
if (_z_str_eq(proto, BT_SCHEMA) == true) {
ret = _z_bt_config_from_str(strint, p_start);
} else
#endif
#if Z_LINK_SERIAL == 1
if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
ret = _z_serial_config_from_str(strint, p_start);
} else
#endif
#if Z_LINK_WS == 1
if (_z_str_eq(proto, WS_SCHEMA) == true) {
if (_z_str_eq(proto, WS_SCHEMA) == true) {
ret = _z_ws_config_from_str(strint, p_start);
} else
#endif
Expand All @@ -335,22 +335,22 @@ size_t _z_endpoint_config_strlen(const _z_str_intmap_t *s, const char *proto) {
} else
#endif
#if Z_LINK_UDP_UNICAST == 1 || Z_LINK_UDP_MULTICAST == 1
if (_z_str_eq(proto, UDP_SCHEMA) == true) {
if (_z_str_eq(proto, UDP_SCHEMA) == true) {
len = _z_udp_config_strlen(s);
} else
#endif
#if Z_LINK_BLUETOOTH == 1
if (_z_str_eq(proto, BT_SCHEMA) == true) {
if (_z_str_eq(proto, BT_SCHEMA) == true) {
len = _z_bt_config_strlen(s);
} else
#endif
#if Z_LINK_SERIAL == 1
if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
len = _z_serial_config_strlen(s);
} else
#endif
#if Z_LINK_WS == 1
if (_z_str_eq(proto, WS_SCHEMA) == true) {
if (_z_str_eq(proto, WS_SCHEMA) == true) {
len = _z_ws_config_strlen(s);
} else
#endif
Expand All @@ -371,22 +371,22 @@ char *_z_endpoint_config_to_str(const _z_str_intmap_t *s, const char *proto) {
} else
#endif
#if Z_LINK_UDP_UNICAST == 1 || Z_LINK_UDP_MULTICAST == 1
if (_z_str_eq(proto, UDP_SCHEMA) == true) {
if (_z_str_eq(proto, UDP_SCHEMA) == true) {
res = _z_udp_config_to_str(s);
} else
#endif
#if Z_LINK_BLUETOOTH == 1
if (_z_str_eq(proto, BT_SCHEMA) == true) {
if (_z_str_eq(proto, BT_SCHEMA) == true) {
res = _z_bt_config_to_str(s);
} else
#endif
#if Z_LINK_SERIAL == 1
if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
res = _z_serial_config_to_str(s);
} else
#endif
#if Z_LINK_WS == 1
if (_z_str_eq(proto, WS_SCHEMA) == true) {
if (_z_str_eq(proto, WS_SCHEMA) == true) {
res = _z_ws_config_to_str(s);
} else
#endif
Expand Down
10 changes: 5 additions & 5 deletions src/link/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ int8_t _z_open_link(_z_link_t *zl, const char *locator) {
} else
#endif
#if Z_LINK_UDP_UNICAST == 1
if (_z_endpoint_udp_unicast_valid(&ep) == _Z_RES_OK) {
if (_z_endpoint_udp_unicast_valid(&ep) == _Z_RES_OK) {
ret = _z_new_link_udp_unicast(zl, ep);
} else
#endif
#if Z_LINK_BLUETOOTH == 1
if (_z_endpoint_bt_valid(&ep) == _Z_RES_OK) {
if (_z_endpoint_bt_valid(&ep) == _Z_RES_OK) {
ret = _z_new_link_bt(zl, ep);
} else
#endif
#if Z_LINK_SERIAL == 1
if (_z_endpoint_serial_valid(&ep) == _Z_RES_OK) {
if (_z_endpoint_serial_valid(&ep) == _Z_RES_OK) {
ret = _z_new_link_serial(zl, ep);
} else
#endif
#if Z_LINK_WS == 1
if (_z_endpoint_ws_valid(&ep) == _Z_RES_OK) {
if (_z_endpoint_ws_valid(&ep) == _Z_RES_OK) {
ret = _z_new_link_ws(zl, &ep);
} else
#endif
Expand Down Expand Up @@ -88,7 +88,7 @@ int8_t _z_listen_link(_z_link_t *zl, const char *locator) {
} else
#endif
#if Z_LINK_BLUETOOTH == 1
if (_z_endpoint_bt_valid(&ep) == _Z_RES_OK) {
if (_z_endpoint_bt_valid(&ep) == _Z_RES_OK) {
ret = _z_new_link_bt(zl, ep);
} else
#endif
Expand Down
Loading