mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +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
@@ -49,7 +49,7 @@
|
||||
|
||||
DevPrivateKeyRec PictureScreenPrivateKeyRec;
|
||||
DevPrivateKeyRec PictureWindowPrivateKeyRec;
|
||||
static int PictureGeneration;
|
||||
static x_server_generation_t PictureGeneration;
|
||||
RESTYPE PictureType;
|
||||
RESTYPE PictFormatType;
|
||||
RESTYPE GlyphSetType;
|
||||
|
||||
Reference in New Issue
Block a user