dix: make ProcBadRequest() static

Nobody outside tables.c is actually using it, so can be static.

The function used to be _X_EXPORT'ed, but there's no indication that any
external driver (not even proprietary NVidia) ever using it, so we can
get away w/o ABI version bump.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-16 13:35:40 +02:00
committed by Enrico Weigelt
parent 48c72edf38
commit 9a920b8fc5
3 changed files with 6 additions and 9 deletions

View File

@@ -716,12 +716,6 @@ CreateConnectionBlock(void)
return TRUE;
}
int
ProcBadRequest(ClientPtr client)
{
return BadRequest;
}
int
ProcCreateWindow(ClientPtr client)
{

View File

@@ -59,6 +59,12 @@ SOFTWARE.
#include "swaprep.h"
#include "swapreq.h"
static int
ProcBadRequest(ClientPtr client)
{
return BadRequest;
}
int (*InitialVector[3]) (ClientPtr /* client */) = {
0,
ProcInitialConnection,

View File

@@ -156,7 +156,4 @@ extern _X_EXPORT int (*SwappedProcVector[256]) (ClientPtr /*client */ );
/* fixme: still needed by (public) dix.h */
extern ReplySwapPtr ReplySwapVector[256];
extern _X_EXPORT int
ProcBadRequest(ClientPtr /*client */ );
#endif /* DIXSTRUCT_H */