diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-07-17 13:00:49 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-11 19:44:54 +0200 |
commit | 71e234151ddc6b50576364c30bda2b72264b1083 (patch) | |
tree | d03aa4a2f86a147ee0083a021312e4f12fac2a4e /src/providers/krb5 | |
parent | 2b68335643d7b48225d4ab15ac116afcbf279505 (diff) | |
download | sssd-71e234151ddc6b50576364c30bda2b72264b1083.tar.gz sssd-71e234151ddc6b50576364c30bda2b72264b1083.tar.bz2 sssd-71e234151ddc6b50576364c30bda2b72264b1083.zip |
Fix formating of variables with type: ssize_t
Diffstat (limited to 'src/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_child_handler.c | 2 | ||||
-rw-r--r-- | src/providers/krb5/krb5_common.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_child_handler.c b/src/providers/krb5/krb5_child_handler.c index 8117d1e5..20b83d13 100644 --- a/src/providers/krb5/krb5_child_handler.c +++ b/src/providers/krb5/krb5_child_handler.c @@ -538,7 +538,7 @@ parse_krb5_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, ssize_t len, msg_status, msg_type, msg_len)); if ((p + msg_len) > len) { - DEBUG(SSSDBG_CRIT_FAILURE, ("message format error [%d] > [%d].\n", + DEBUG(SSSDBG_CRIT_FAILURE, ("message format error [%d] > [%zd].\n", p+msg_len, len)); return EINVAL; } diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c index 80eaeb56..c40f0dd4 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -410,7 +410,7 @@ errno_t write_krb5info_file(const char *realm, const char *server, char *krb5info_name = NULL; TALLOC_CTX *tmp_ctx = NULL; const char *name_tmpl = NULL; - int server_len; + size_t server_len; ssize_t written; mode_t old_umask; @@ -471,7 +471,7 @@ errno_t write_krb5info_file(const char *realm, const char *server, if (written != server_len) { DEBUG(SSSDBG_CRIT_FAILURE, - ("Write error, wrote [%d] bytes, expected [%d]\n", + ("Write error, wrote [%zd] bytes, expected [%zu]\n", written, server_len)); ret = EIO; goto done; |