diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-01-24 17:18:16 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-02-22 23:56:37 +0000 |
commit | bc90c44e60c309564a7feec5d288ecafcbb2a62b (patch) | |
tree | 0f8c6bc0e89a92cb902735122e30e57346cce3e5 /xkb/xkb.c | |
parent | 28669adef835ca30f769454989e4bcda8193d2f3 (diff) |
xkb: fix int size mismatch
GCC reports:
../xkb/xkb.c: In function ‘_XkbSetMapCheckLength’:
../xkb/xkb.c:2464:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
2464 | ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %ld got %ld\n",
| ~~^
| |
| long int
| %d
2465 | len, req_len);
| ~~~
| |
| size_t {aka unsigned int}
../xkb/xkb.c:2464:62: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
2464 | ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %ld got %ld\n",
| ~~^
| |
| long int
| %d
2465 | len, req_len);
| ~~~~~~~
| |
| size_t {aka unsigned int}
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1257>
Diffstat (limited to 'xkb/xkb.c')
-rw-r--r-- | xkb/xkb.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2460,8 +2460,7 @@ _XkbSetMapCheckLength(xkbSetMapReq *req) if (len == req_len) return Success; bad: - ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %ld got %ld\n", - len, req_len); + ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %zd got %zd\n", len, req_len); return BadLength; } |