mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 22:48:14 +02:00
logind-util: Use %u for unsigned int in snprintf
Addresses this warning found by Denis Denisov: [src/logind-util.c:702]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
parent
27135af4d4
commit
c68362329e
1 changed files with 1 additions and 1 deletions
|
|
@ -702,7 +702,7 @@ weston_logind_setup_vt(struct weston_logind *wl)
|
|||
sigset_t mask;
|
||||
struct wl_event_loop *loop;
|
||||
|
||||
snprintf(buf, sizeof(buf), "/dev/tty%d", wl->vtnr);
|
||||
snprintf(buf, sizeof(buf), "/dev/tty%u", wl->vtnr);
|
||||
buf[sizeof(buf) - 1] = 0;
|
||||
|
||||
wl->vt = open(buf, O_RDWR|O_CLOEXEC|O_NONBLOCK);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue