mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
nsswitch: Fix integer size types in winbind_write_sock()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
3c91ad9463
commit
5fe2030996
@ -671,10 +671,14 @@ static int winbind_open_pipe_sock(struct winbindd_context *ctx,
|
|||||||
|
|
||||||
/* Write data to winbindd socket */
|
/* Write data to winbindd socket */
|
||||||
|
|
||||||
static int winbind_write_sock(struct winbindd_context *ctx, void *buffer,
|
static ssize_t winbind_write_sock(struct winbindd_context *ctx,
|
||||||
int count, int recursing, int need_priv)
|
void *buffer,
|
||||||
|
size_t count,
|
||||||
|
int recursing,
|
||||||
|
int need_priv)
|
||||||
{
|
{
|
||||||
int fd, result, nwritten;
|
int fd;
|
||||||
|
ssize_t nwritten;
|
||||||
|
|
||||||
/* Open connection to winbind daemon */
|
/* Open connection to winbind daemon */
|
||||||
|
|
||||||
@ -692,6 +696,7 @@ static int winbind_write_sock(struct winbindd_context *ctx, void *buffer,
|
|||||||
|
|
||||||
while(nwritten < count) {
|
while(nwritten < count) {
|
||||||
struct pollfd pfd;
|
struct pollfd pfd;
|
||||||
|
ssize_t result;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Catch pipe close on other end by checking if a read()
|
/* Catch pipe close on other end by checking if a read()
|
||||||
|
Loading…
Reference in New Issue
Block a user