mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-04 21:18:05 +02:00
xf86drm: fix sign-compare warning
xf86drm.c:3601:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (expected < sizeof(match)) {
^
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
0825792723
commit
3bc14c8cb9
1 changed files with 1 additions and 1 deletions
|
|
@ -3582,7 +3582,7 @@ char *drmGetDeviceNameFromFd2(int fd)
|
|||
FILE *f;
|
||||
char buf[512];
|
||||
static const char match[9] = "\nDEVNAME=";
|
||||
int expected = 1;
|
||||
size_t expected = 1;
|
||||
|
||||
|
||||
if (fstat(fd, &sbuf))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue