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:
Enrico Weigelt, metux IT consult
2025-08-25 11:24:53 +02:00
committed by Enrico Weigelt
parent 56cd66d147
commit f8ad69698a
24 changed files with 52 additions and 161 deletions

View File

@@ -2129,8 +2129,7 @@ PanoramiXGetImage(ClientPtr client)
swapl(&reply.visual);
}
X_SEND_REPLY_WITH_RPCBUF(client, reply, rpcbuf);
return Success;
return X_SEND_REPLY_WITH_RPCBUF(client, reply, rpcbuf);
}
/* The text stuff should be rewritten so that duplication happens