mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
treewide return code of X_SEND_REPLY_WITH_RPCBUF()
The macro will automatically return BadAlloc if the buffer is broken, otherwise Success. Thus, we don't need extra prior rpcbuf check. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
56cd66d147
commit
f8ad69698a
@@ -400,8 +400,7 @@ ProcXFixesGetCursorImage(ClientPtr client)
|
||||
swapl(&rep.cursorSerial);
|
||||
}
|
||||
|
||||
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
return Success;
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
}
|
||||
|
||||
int
|
||||
@@ -460,8 +459,8 @@ ProcXFixesGetCursorName(ClientPtr client)
|
||||
swapl(&rep.atom);
|
||||
swaps(&rep.nbytes);
|
||||
}
|
||||
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
return Success;
|
||||
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
}
|
||||
|
||||
int _X_COLD
|
||||
@@ -536,8 +535,7 @@ ProcXFixesGetCursorImageAndName(ClientPtr client)
|
||||
swaps(&rep.nbytes);
|
||||
}
|
||||
|
||||
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
return Success;
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user