diff --git a/test/check_oauth2.c b/test/check_oauth2.c index a5355ba..e8dc019 100644 --- a/test/check_oauth2.c +++ b/test/check_oauth2.c @@ -549,7 +549,7 @@ static char *oauth2_check_oauth2_serve_post(const char *request) if (strncmp(request, post_introspection_path, strlen(post_introspection_path)) == 0) { request += strlen(post_introspection_path) + 5; - data = strstr(request, sep); + data = strstr((char *)request, sep); if (data == NULL) goto error; data += strlen(sep); diff --git a/test/check_openidc.c b/test/check_openidc.c index 21cdae7..d8d8fb0 100644 --- a/test/check_openidc.c +++ b/test/check_openidc.c @@ -235,7 +235,7 @@ static char *oauth2_check_openidc_serve_post(const char *request) if (strncmp(request, token_endpoint_path, strlen(token_endpoint_path)) == 0) { request += strlen(token_endpoint_path) + 5; - data = strstr(request, sep); + data = strstr((char *)request, sep); if (data == NULL) goto error; data += strlen(sep); @@ -817,7 +817,7 @@ static void _openidc_verify_authentication_request_state( { bool rc = false; const char *location = NULL; - char *state = NULL; + const char *state = NULL; ck_assert_ptr_ne(NULL, response); ck_assert_uint_eq(oauth2_http_response_status_code_get(_log, response), diff --git a/test/check_proto.c b/test/check_proto.c index 904c09a..a097b69 100644 --- a/test/check_proto.c +++ b/test/check_proto.c @@ -332,7 +332,7 @@ static char *oauth2_check_proto_serve_post(const char *request) if (strncmp(request, token_endpoint_path, strlen(token_endpoint_path)) == 0) { request += strlen(token_endpoint_path) + 5; - data = strstr(request, sep); + data = strstr((char *)request, sep); if (data == NULL) goto error; data += strlen(sep);