mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 01:34:11 +00:00
treewide: fix serverGeneration int type mismatch
The global (exported) serverGeneration field is `unsigned long`, while many other places copy it and compare it two other integer types, eg. plain `int` (which is signed). Even if it's unlikely ever reaching such high number of generations that it will ever make trouble, it's still a good idea to clean this up and use the same type everywhere. For clearity, introducing a typedef `x_server_generation_t` which is used everywhere, instead of raw `unsigned long`. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
05d88310bd
commit
34c3a9c7e2
@@ -99,7 +99,7 @@ typedef struct {
|
||||
static PseudoramiXScreenRec *pseudoramiXScreens = NULL;
|
||||
static int pseudoramiXScreensAllocated = 0;
|
||||
static int pseudoramiXNumScreens = 0;
|
||||
static unsigned long pseudoramiXGeneration = 0;
|
||||
static x_server_generation_t pseudoramiXGeneration = 0;
|
||||
|
||||
// Add a PseudoramiX screen.
|
||||
// The rest of the X server will know nothing about this screen.
|
||||
|
||||
Reference in New Issue
Block a user