Skip to content

Commit

Permalink
feat: add missing end of file new line
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jan 9, 2024
1 parent bfecbb0 commit a59b5e1
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,4 +1090,4 @@ zp_send_join_options_t zp_send_join_options_default(void) { return (zp_send_join
int8_t zp_send_join(z_session_t zs, const zp_send_join_options_t *options) {
(void)(options);
return _zp_send_join(zs._val);
}
}
2 changes: 1 addition & 1 deletion src/link/unicast/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ int8_t _z_new_link_udp_unicast(_z_link_t *zl, _z_endpoint_t endpoint) {

return ret;
}
#endif
#endif
2 changes: 1 addition & 1 deletion src/net/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ void _z_value_free(_z_value_t **value) {
zp_free(ptr);
*value = NULL;
}
}
}
2 changes: 1 addition & 1 deletion src/net/primitives.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,4 @@ int8_t _z_query(_z_session_t *zn, _z_keyexpr_t keyexpr, const char *parameters,

return ret;
}
#endif
#endif
2 changes: 1 addition & 1 deletion src/net/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ void _z_queryable_free(_z_queryable_t **qbl) {
*qbl = NULL;
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion src/net/subscribe.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ void _z_subscriber_free(_z_subscriber_t **sub) {
*sub = NULL;
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion src/protocol/codec/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ int8_t _z_zbuf_read_exact(_z_zbuf_t *zbf, uint8_t *dest, size_t length) {
}
_z_zbuf_read_bytes(zbf, dest, 0, length);
return _Z_RES_OK;
}
}
2 changes: 1 addition & 1 deletion src/protocol/codec/declarations.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,4 @@ int8_t _z_declaration_decode(_z_declaration_t *decl, _z_zbuf_t *zbf) {
}
}
return ret;
}
}
2 changes: 1 addition & 1 deletion src/protocol/codec/ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ int8_t _z_msg_ext_decode_iter(_z_zbuf_t *zbf, int8_t (*callback)(_z_msg_ext_t *,

int8_t _z_msg_ext_skip_non_mandatories(_z_zbuf_t *zbf, uint8_t trace_id) {
return _z_msg_ext_decode_iter(zbf, _z_msg_ext_skip_non_mandatory, &trace_id);
}
}
2 changes: 1 addition & 1 deletion src/protocol/codec/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,4 +889,4 @@ int8_t _z_scouting_message_decode_na(_z_scouting_message_t *msg, _z_zbuf_t *zbf)

int8_t _z_scouting_message_decode(_z_scouting_message_t *s_msg, _z_zbuf_t *zbf) {
return _z_scouting_message_decode_na(s_msg, zbf);
}
}
2 changes: 1 addition & 1 deletion src/protocol/codec/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,4 +510,4 @@ int8_t _z_transport_message_decode(_z_transport_message_t *msg, _z_zbuf_t *zbf)
}

return ret;
}
}
2 changes: 1 addition & 1 deletion src/session/push.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ int8_t _z_trigger_push(_z_session_t *zn, _z_n_msg_push_t *push) {
ret = _z_trigger_subscriptions(zn, push->_key, payload, encoding, kind, push->_timestamp);
#endif
return ret;
}
}
2 changes: 1 addition & 1 deletion src/session/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,4 @@ void _z_flush_pending_queries(_z_session_t *zn) {
zp_mutex_unlock(&zn->_mutex_inner);
#endif // Z_FEATURE_MULTI_THREAD == 1
}
#endif
#endif
2 changes: 1 addition & 1 deletion src/session/reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ int8_t _z_trigger_reply_final(_z_session_t *zn, _z_n_msg_response_final_t *final
_z_trigger_query_reply_final(zn, id);
#endif
return ret;
}
}
2 changes: 1 addition & 1 deletion src/session/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ void _z_flush_subscriptions(_z_session_t *zn) {
zp_mutex_unlock(&zn->_mutex_inner);
#endif // Z_FEATURE_MULTI_THREAD == 1
}
#endif
#endif
2 changes: 1 addition & 1 deletion src/system/mbed/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ unsigned long zp_time_elapsed_s(zp_time_t *time) {
return elapsed;
}

} // extern "C"
} // extern "C"
2 changes: 1 addition & 1 deletion src/transport/unicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ void _zp_unicast_info_session(const _z_transport_t *zt, _z_config_t *ps) {
_ZP_UNUSED(zt);
_ZP_UNUSED(ps);
}
#endif // Z_FEATURE_UNICAST_TRANSPORT == 1
#endif // Z_FEATURE_UNICAST_TRANSPORT == 1
2 changes: 1 addition & 1 deletion src/transport/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ void _z_conduit_sn_list_decrement(const _z_zint_t sn_resolution, _z_conduit_sn_l
sns->_val._qos[i]._best_effort = _z_sn_decrement(sn_resolution, sns->_val._qos[i]._reliable);
}
}
}
}
2 changes: 1 addition & 1 deletion src/utils/pointers.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ size_t _z_ptr_char_diff(const char *l_ptr, const char *r_ptr) { return l_ptr - r

const char *_z_cptr_char_offset(const char *ptr, const ptrdiff_t off) { return ptr + off; }

char *_z_ptr_char_offset(char *ptr, const ptrdiff_t off) { return ptr + off; }
char *_z_ptr_char_offset(char *ptr, const ptrdiff_t off) { return ptr + off; }

Check warning

Code scanning / Cppcheck (reported by Codacy)

misra violation 804 with no text in the supplied rule-texts-file Warning

misra violation 804 with no text in the supplied rule-texts-file

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 18.4 rule Note

MISRA 18.4 rule
2 changes: 1 addition & 1 deletion src/utils/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ size_t _z_str_startswith(const char *s, const char *needle) {
}
}
return i;
}
}

0 comments on commit a59b5e1

Please sign in to comment.