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

Cleanup cookie #198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Cleanup cookie #198

wants to merge 1 commit into from

Conversation

boaks
Copy link
Contributor

@boaks boaks commented Apr 30, 2023

As preview for the cleanup using SKIP_VAR_FIELDS and GET_VAR_FIELDS.

*cookie = msg + sizeof(uint8);
return dtls_uint8_to_int(msg);
*cookie = msg;
return cookie_len;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd: I would have expected a warning because of the cast from size_t to int. Maybe the compiler is smarter than I gave it credit for.

Otherwise: LGTM

Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants