Revision 75c439bc spice-qemu-char.c
b/spice-qemu-char.c | ||
---|---|---|
35 | 35 |
uint8_t* p = (uint8_t*)buf; |
36 | 36 |
|
37 | 37 |
while (len > 0) { |
38 |
last_out = MIN(len, qemu_chr_be_can_write(scd->chr)); |
|
38 |
int can_write = qemu_chr_be_can_write(scd->chr); |
|
39 |
last_out = MIN(len, can_write); |
|
39 | 40 |
if (last_out <= 0) { |
40 | 41 |
break; |
41 | 42 |
} |
Also available in: Unified diff