Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Fix printf warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Feb 28, 2024
1 parent 0c4a0a2 commit b2ab856
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/iddawc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4333,10 +4333,10 @@ int i_run_auth_request(struct _i_session * i_session) {
}
} else if (response.status == 400) {
y_log_message(Y_LOG_LEVEL_ERROR, "i_run_auth_request - Server response 400");
y_log_message(Y_LOG_LEVEL_DEBUG, "%.*s", response.binary_body_length, response.binary_body);
y_log_message(Y_LOG_LEVEL_DEBUG, "%.*s", (int)response.binary_body_length, response.binary_body);
ret = I_ERROR_PARAM;
} else {
y_log_message(Y_LOG_LEVEL_ERROR, "i_run_auth_request - Error http response: %sd", response.status);
y_log_message(Y_LOG_LEVEL_ERROR, "i_run_auth_request - Error http response: %ld", response.status);
ret = I_ERROR;
}
} else {
Expand Down Expand Up @@ -4550,7 +4550,7 @@ int i_run_token_request(struct _i_session * i_session) {
ret = I_ERROR_PARAM;
}
} else {
y_log_message(Y_LOG_LEVEL_ERROR, "i_run_token_request code - Error parsing JSON response %.*s", response.binary_body_length, response.binary_body);
y_log_message(Y_LOG_LEVEL_ERROR, "i_run_token_request code - Error parsing JSON response %.*s", (int)response.binary_body_length, response.binary_body);
ret = I_ERROR;
}
json_decref(j_response);
Expand All @@ -4568,7 +4568,7 @@ int i_run_token_request(struct _i_session * i_session) {
ret = I_ERROR_SERVER;
} else {
y_log_message(Y_LOG_LEVEL_ERROR, "i_run_token_request code - Invalid response status: %ld", response.status);
y_log_message(Y_LOG_LEVEL_DEBUG, "response body %.*s", response.binary_body_length, response.binary_body);
y_log_message(Y_LOG_LEVEL_DEBUG, "response body %.*s", (int)response.binary_body_length, response.binary_body);
ret = I_ERROR;
}
} else {
Expand Down Expand Up @@ -7180,7 +7180,7 @@ int i_run_ciba_request(struct _i_session * i_session) {
}

if (i_session->ciba_requested_expiry) {
tmp = msprintf("%u", i_session->ciba_requested_expiry);
tmp = msprintf("%ld", i_session->ciba_requested_expiry);
ulfius_set_request_properties(&request, U_OPT_POST_BODY_PARAMETER, "requested_expiry", tmp, U_OPT_NONE);
o_free(tmp);
}
Expand Down Expand Up @@ -7360,7 +7360,7 @@ int i_run_ciba_request(struct _i_session * i_session) {
ret = I_ERROR_SERVER;
} else {
y_log_message(Y_LOG_LEVEL_ERROR, "i_run_ciba_auth_request - Invalid response status");
y_log_message(Y_LOG_LEVEL_DEBUG, "response status %d", response.status);
y_log_message(Y_LOG_LEVEL_DEBUG, "response status %ld", response.status);
ret = I_ERROR;
}
} else {
Expand Down

0 comments on commit b2ab856

Please sign in to comment.