Revision 5fc9cfed

b/qemu-char.c
508 508

  
509 509
#else
510 510

  
511
static int unix_write(int fd, const uint8_t *buf, int len1)
511
int send_all(int fd, const void *_buf, int len1)
512 512
{
513 513
    int ret, len;
514
    const uint8_t *buf = _buf;
514 515

  
515 516
    len = len1;
516 517
    while (len > 0) {
......
527 528
    }
528 529
    return len1 - len;
529 530
}
530

  
531
int send_all(int fd, const void *buf, int len1)
532
{
533
    return unix_write(fd, buf, len1);
534
}
535 531
#endif /* !_WIN32 */
536 532

  
537 533
#ifndef _WIN32

Also available in: Unified diff