summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-17 13:00:49 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:54 +0200
commit71e234151ddc6b50576364c30bda2b72264b1083 (patch)
treed03aa4a2f86a147ee0083a021312e4f12fac2a4e /src/providers/ipa
parent2b68335643d7b48225d4ab15ac116afcbf279505 (diff)
downloadsssd-71e234151ddc6b50576364c30bda2b72264b1083.tar.gz
sssd-71e234151ddc6b50576364c30bda2b72264b1083.tar.xz
sssd-71e234151ddc6b50576364c30bda2b72264b1083.zip
Fix formating of variables with type: ssize_t
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_selinux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index 39bebebfd..5f734338b 100644
--- a/src/providers/ipa/ipa_selinux.c
+++ b/src/providers/ipa/ipa_selinux.c
@@ -672,7 +672,7 @@ static errno_t write_selinux_login_file(const char *username, char *string)
char *path = NULL;
char *tmp_path = NULL;
ssize_t written;
- int len;
+ size_t len;
int fd = -1;
mode_t oldmask;
TALLOC_CTX *tmp_ctx;
@@ -743,7 +743,7 @@ static errno_t write_selinux_login_file(const char *username, char *string)
}
if (written != len) {
- DEBUG(SSSDBG_OP_FAILURE, ("Expected to write %d bytes, wrote %d",
+ DEBUG(SSSDBG_OP_FAILURE, ("Expected to write %zd bytes, wrote %zu",
written, len));
ret = EIO;
goto done;