Skip to content

Commit b6fa803

Browse files
authored
Merge pull request #66 from abbra/fix-discarded-qualifiers-2
Few more fixes for discarded qualifiers in tests
2 parents 5fbbf07 + 1c52ba2 commit b6fa803

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎test/check_oauth2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ static char *oauth2_check_oauth2_serve_post(const char *request)
549549
if (strncmp(request, post_introspection_path,
550550
strlen(post_introspection_path)) == 0) {
551551
request += strlen(post_introspection_path) + 5;
552-
data = strstr(request, sep);
552+
data = strstr((char *)request, sep);
553553
if (data == NULL)
554554
goto error;
555555
data += strlen(sep);

‎test/check_openidc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static char *oauth2_check_openidc_serve_post(const char *request)
235235
if (strncmp(request, token_endpoint_path,
236236
strlen(token_endpoint_path)) == 0) {
237237
request += strlen(token_endpoint_path) + 5;
238-
data = strstr(request, sep);
238+
data = strstr((char *)request, sep);
239239
if (data == NULL)
240240
goto error;
241241
data += strlen(sep);
@@ -817,7 +817,7 @@ static void _openidc_verify_authentication_request_state(
817817
{
818818
bool rc = false;
819819
const char *location = NULL;
820-
char *state = NULL;
820+
const char *state = NULL;
821821

822822
ck_assert_ptr_ne(NULL, response);
823823
ck_assert_uint_eq(oauth2_http_response_status_code_get(_log, response),

‎test/check_proto.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static char *oauth2_check_proto_serve_post(const char *request)
332332
if (strncmp(request, token_endpoint_path,
333333
strlen(token_endpoint_path)) == 0) {
334334
request += strlen(token_endpoint_path) + 5;
335-
data = strstr(request, sep);
335+
data = strstr((char *)request, sep);
336336
if (data == NULL)
337337
goto error;
338338
data += strlen(sep);

0 commit comments

Comments
 (0)