mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-19 05:34:02 -04:00
tests: Fix a format error on darwin
test-compositor.c:94:25: error: format specifies type 'long' but the argument has type '__darwin_suseconds_t' (aka 'int') [-Werror,-Wformat]
getpid(), tv.tv_sec, tv.tv_usec);
^~~~~~~~~~
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
2a7bce324b
commit
a200085120
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ get_socket_name(void)
|
||||||
|
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
snprintf(retval, sizeof retval, "wayland-test-%d-%ld%ld",
|
snprintf(retval, sizeof retval, "wayland-test-%d-%ld%ld",
|
||||||
getpid(), tv.tv_sec, tv.tv_usec);
|
(int)getpid(), (long)tv.tv_sec, (long)tv.tv_usec);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue