summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-09-29 13:54:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-10-04 21:26:02 +0200
commit8fe4f98192aa23729d3607bf23c451270b320368 (patch)
tree7093de05a80731eecb8dcea37ce1fca1afb17136
parent7128fadade544efcd86b113a5090b00d20993671 (diff)
downloadsssd-8fe4f98192aa23729d3607bf23c451270b320368.tar.gz
sssd-8fe4f98192aa23729d3607bf23c451270b320368.tar.xz
sssd-8fe4f98192aa23729d3607bf23c451270b320368.zip
SECRETS: Use a better data type for ret
Normally we use errno_t for return codes and size_t for counting objects. Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
-rw-r--r--src/responder/secrets/proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/secrets/proxy.c b/src/responder/secrets/proxy.c
index ba34b2822..3d3cae87d 100644
--- a/src/responder/secrets/proxy.c
+++ b/src/responder/secrets/proxy.c
@@ -613,7 +613,7 @@ static int proxy_http_req_state_destroy(void *data)
static int proxy_wire_send(int fd, struct proxy_http_request *req)
{
struct sec_data data;
- size_t ret;
+ int ret;
data.data = req->data->data + req->written;
data.length = req->data->length - req->written;
@@ -621,7 +621,7 @@ static int proxy_wire_send(int fd, struct proxy_http_request *req)
ret = sec_send_data(fd, &data);
if (ret != EOK && ret != EAGAIN) {
DEBUG(SSSDBG_CRIT_FAILURE,
- "sec_send_data failed [%zu]: %s\n", ret, sss_strerror(ret));
+ "sec_send_data failed [%d]: %s\n", ret, sss_strerror(ret));
return ret;
}