aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-12-02 23:30:42 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 14:58:17 +0200
commitb65dd4e3094247560cae56ad00377387064c0627 (patch)
tree2825e6a1d54e91b21262de6fa6bd9dce507b75e1 /nx-X11
parent27933a8d87d759e42a1c2d58a54af1ba99f8455c (diff)
downloadnx-libs-b65dd4e3094247560cae56ad00377387064c0627.tar.gz
nx-libs-b65dd4e3094247560cae56ad00377387064c0627.tar.bz2
nx-libs-b65dd4e3094247560cae56ad00377387064c0627.zip
NXshm.c: simplify Dispatch functions
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXshm.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXshm.c b/nx-X11/programs/Xserver/hw/nxagent/NXshm.c
index a38baac6a..c84e8e5a9 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXshm.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXshm.c
@@ -448,26 +448,21 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr)
return result;
}
-/* A wrapper that handles the trap. This construct is used
- to keep the derived code closer to the original
-*/
static int
ProcShmDispatch (register ClientPtr client)
{
- int result;
-
#ifdef TEST
REQUEST(xReq);
if (stuff->data <= X_ShmCreatePixmap)
{
- fprintf(stderr, "ProcShmDispatch: Request [%s] OPCODE [%d] for client [%d].\n",
+ fprintf(stderr, "%s: Request [%s] OPCODE [%d] for client [%d].\n", __func__,
nxagentShmRequestLiteral[stuff->data], stuff->data, client->index);
}
#endif
nxagentShmTrap = True;
- result = xorg_ProcShmDispatch(client);
+ int result = xorg_ProcShmDispatch(client);
nxagentShmTrap = False;
@@ -477,20 +472,18 @@ ProcShmDispatch (register ClientPtr client)
static int
SProcShmDispatch (register ClientPtr client)
{
- int result;
-
#ifdef TEST
REQUEST(xReq);
if (stuff->data <= X_ShmCreatePixmap)
{
- fprintf(stderr, "SProcShmDispatch: Request [%s] OPCODE [%d] for client [%d].\n",
+ fprintf(stderr, "%s: Request [%s] OPCODE [%d] for client [%d].\n", __func__,
nxagentShmRequestLiteral[stuff->data], stuff->data, client->index);
}
#endif
nxagentShmTrap = True;
- result = xorg_SProcShmDispatch(client);
+ int result = xorg_SProcShmDispatch(client);
nxagentShmTrap = False;