dix: drop unused args from CreateRootCursor()

The args have become dummies almost two decades ago, so no need
to keep them any longer.

Fixes: 0afeb0241a
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1522>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-05-06 14:57:15 +02:00 committed by Marge Bot
parent 27babe0334
commit 4a27ff7a1a
3 changed files with 3 additions and 4 deletions

View File

@ -489,7 +489,7 @@ AllocGlyphCursor(Font source, unsigned sourceChar, Font mask, unsigned maskChar,
*************************************************************/
CursorPtr
CreateRootCursor(char *unused1, unsigned int unused2)
CreateRootCursor(void)
{
CursorPtr curs;
FontPtr cursorfont;

View File

@ -237,7 +237,7 @@ dix_main(int argc, char *argv[], char *envp[])
FatalError("could not open default font");
}
if (!(rootCursor = CreateRootCursor(NULL, 0))) {
if (!(rootCursor = CreateRootCursor())) {
FatalError("could not open default cursor font");
}

View File

@ -99,8 +99,7 @@ extern _X_EXPORT int AllocGlyphCursor(Font /*source */ ,
ClientPtr /*client */ ,
XID /*cid */ );
extern _X_EXPORT CursorPtr CreateRootCursor(char * /*pfilename */ ,
unsigned int /*glyph */ );
extern _X_EXPORT CursorPtr CreateRootCursor(void);
extern _X_EXPORT int ServerBitsFromGlyph(FontPtr /*pfont */ ,
unsigned int /*ch */ ,