/* 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 */
while(nwritten < count) {
struct pollfd pfd;
+ ssize_t result;
int ret;
/* Catch pipe close on other end by checking if a read()