Skip to content

Commit

Permalink
fix: use _z_id_check for timestamp_check
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jul 11, 2024
1 parent 46624f9 commit 923a9c8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/session/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,7 @@ void _z_timestamp_clear(_z_timestamp_t *tstamp) {
tstamp->time = 0;
}

_Bool _z_timestamp_check(const _z_timestamp_t *stamp) {
for (uint8_t i = 0; i < sizeof(_z_id_t); ++i) {
if (stamp->id.id[i] != 0) {
return true;
}
}
return false;
}
_Bool _z_timestamp_check(const _z_timestamp_t *stamp) { return _z_id_check(stamp->id); }

int8_t _z_session_generate_zid(_z_id_t *bs, uint8_t size) {
int8_t ret = _Z_RES_OK;
Expand Down

0 comments on commit 923a9c8

Please sign in to comment.