mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
os: xtrans: _XSERVTransWriteV(): call ciptr->transptr->Write() directly
_XSERVTransWrite() is only intended as frontend, for xtrans consumers to call in here. And upcoming commits will change that function to call the Writev() method instead of Write(), so we would end up in infinite recursing if we'd still it it here. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
b738a28098
commit
a905a3921b
@@ -1043,7 +1043,7 @@ static int _XSERVTransWriteV (XtransConnInfo ciptr, struct iovec *iov, size_t io
|
||||
base = iov->iov_base;
|
||||
while (len > 0) {
|
||||
register int nbytes;
|
||||
nbytes = _XSERVTransWrite (ciptr, base, len);
|
||||
nbytes = ciptr->transptr->Write (ciptr, buf, size);
|
||||
if (nbytes < 0 && total == 0) return -1;
|
||||
if (nbytes <= 0) return total;
|
||||
ESET(0);
|
||||
|
||||
Reference in New Issue
Block a user