mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
Fix incorrect %zd formatting directives
%zd is for ssize_t. For size_t we should use %zu.
This commit is contained in:
parent
36a2b19485
commit
818fc4a87b
3 changed files with 6 additions and 6 deletions
|
|
@ -522,12 +522,12 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *wlr_backend) {
|
|||
strncpy(wlr_output->model, "wayland", sizeof(wlr_output->model));
|
||||
|
||||
char name[64];
|
||||
snprintf(name, sizeof(name), "WL-%zd", ++backend->last_output_num);
|
||||
snprintf(name, sizeof(name), "WL-%zu", ++backend->last_output_num);
|
||||
wlr_output_set_name(wlr_output, name);
|
||||
|
||||
char description[128];
|
||||
snprintf(description, sizeof(description),
|
||||
"Wayland output %zd", backend->last_output_num);
|
||||
"Wayland output %zu", backend->last_output_num);
|
||||
wlr_output_set_description(wlr_output, description);
|
||||
|
||||
output->backend = backend;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue