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 two incompatible types warnings in example code #405

Merged
merged 2 commits into from
Apr 11, 2024
Merged
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
2 changes: 1 addition & 1 deletion tests/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ do_request(const struct rustls_client_config *client_config,
return ret;
}

enum rustls_result
uint32_t
verify(void *userdata, const rustls_verify_server_cert_params *params)
{
size_t i = 0;
Expand Down
4 changes: 3 additions & 1 deletion tests/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ main(int argc, const char **argv)
}

int enable = 1;
if(setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(int)) < 0) {
if(setsockopt(
sockfd, SOL_SOCKET, SO_REUSEADDR, (const char *)&enable, sizeof(int)) <
0) {
print_error("setsockopt(SO_REUSEADDR) failed", 7001);
}

Expand Down