mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Eliminate boilerplate around client->noClientException.
Just let Dispatch() check for a noClientException, rather than making every single dispatch procedure take care of it. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
14
Xext/sync.c
14
Xext/sync.c
@@ -1146,7 +1146,7 @@ ProcSyncInitialize(ClientPtr client)
|
||||
swaps(&rep.sequenceNumber, n);
|
||||
}
|
||||
WriteToClient(client, sizeof(rep), (char *) &rep);
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1223,7 +1223,7 @@ ProcSyncListSystemCounters(ClientPtr client)
|
||||
free(list);
|
||||
}
|
||||
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1297,7 +1297,7 @@ ProcSyncGetPriority(ClientPtr client)
|
||||
|
||||
WriteToClient(client, sizeof(xSyncGetPriorityReply), (char *) &rep);
|
||||
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1317,7 +1317,7 @@ ProcSyncCreateCounter(ClientPtr client)
|
||||
if (!SyncCreateCounter(client, stuff->cid, initial))
|
||||
return BadAlloc;
|
||||
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1569,7 +1569,7 @@ ProcSyncQueryCounter(ClientPtr client)
|
||||
swapl(&rep.value_lo, n);
|
||||
}
|
||||
WriteToClient(client, sizeof(xSyncQueryCounterReply), (char *) &rep);
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1749,7 +1749,7 @@ ProcSyncQueryAlarm(ClientPtr client)
|
||||
}
|
||||
|
||||
WriteToClient(client, sizeof(xSyncQueryAlarmReply), (char *) &rep);
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -1767,7 +1767,7 @@ ProcSyncDestroyAlarm(ClientPtr client)
|
||||
return (rc == BadValue) ? SyncErrorBase + XSyncBadAlarm : rc;
|
||||
|
||||
FreeResource(stuff->alarm, RT_NONE);
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user