From: Andreas Schneider Date: Wed, 17 Jul 2024 08:50:30 +0000 (+0200) Subject: nsswitch: Fix integer size types in winbind_write_sock() X-Git-Tag: tdb-1.4.11~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fe203099665cce636c6fa70a692d044bbfbe322;p=thirdparty%2Fsamba.git nsswitch: Fix integer size types in winbind_write_sock() Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy --- 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()