summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/child_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/child_common.c b/src/util/child_common.c
index 9710630f9..d3f488d18 100644
--- a/src/util/child_common.c
+++ b/src/util/child_common.c
@@ -319,7 +319,7 @@ struct write_pipe_state {
int fd;
uint8_t *buf;
size_t len;
- size_t written;
+ ssize_t written;
};
static void write_pipe_handler(struct tevent_context *ev,
@@ -384,7 +384,7 @@ static void write_pipe_handler(struct tevent_context *ev,
}
if (state->len != state->written) {
- DEBUG(SSSDBG_CRIT_FAILURE, "Wrote %zu bytes, expected %zu\n",
+ DEBUG(SSSDBG_CRIT_FAILURE, "Wrote %zd bytes, expected %zu\n",
state->written, state->len);
tevent_req_error(req, EIO);
return;