diff options
author | Simon Ser <contact@emersion.fr> | 2021-12-09 16:39:09 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-12-09 16:42:04 +0100 |
commit | 818fc4a87b9ea6b7174443e19c1a7c2756b3c002 (patch) | |
tree | 64b04293b58ec3397bacaa3656f6331b6661b789 /backend/x11 | |
parent | 36a2b19485ad299ee0039eb97c0f688d68205539 (diff) |
Fix incorrect %zd formatting directives
%zd is for ssize_t. For size_t we should use %zu.
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c index 25194e70..b87b08dc 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -513,14 +513,14 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) { wlr_output_update_custom_mode(wlr_output, 1024, 768, 0); char name[64]; - snprintf(name, sizeof(name), "X11-%zd", ++x11->last_output_num); + snprintf(name, sizeof(name), "X11-%zu", ++x11->last_output_num); wlr_output_set_name(wlr_output, name); parse_xcb_setup(wlr_output, x11->xcb); char description[128]; snprintf(description, sizeof(description), - "X11 output %zd", x11->last_output_num); + "X11 output %zu", x11->last_output_num); wlr_output_set_description(wlr_output, description); // The X11 protocol requires us to set a colormap and border pixel if the |