From 5fe203099665cce636c6fa70a692d044bbfbe322 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 17 Jul 2024 10:50:30 +0200 Subject: [PATCH] nsswitch: Fix integer size types in winbind_write_sock() Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy --- nsswitch/wb_common.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c index b7f84435a4e..9898b037c55 100644 --- a/nsswitch/wb_common.c +++ b/nsswitch/wb_common.c @@ -671,10 +671,14 @@ static int winbind_open_pipe_sock(struct winbindd_context *ctx, /* Write data to winbindd socket */ -static int winbind_write_sock(struct winbindd_context *ctx, void *buffer, - int count, int recursing, int need_priv) +static ssize_t winbind_write_sock(struct winbindd_context *ctx, + void *buffer, + size_t count, + int recursing, + int need_priv) { - int fd, result, nwritten; + int fd; + ssize_t nwritten; /* Open connection to winbind daemon */ @@ -692,6 +696,7 @@ static int winbind_write_sock(struct winbindd_context *ctx, void *buffer, while(nwritten < count) { struct pollfd pfd; + ssize_t result; int ret; /* Catch pipe close on other end by checking if a read() -- 2.47.3