aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-04-08 18:49:25 +0000
committerDrew DeVault <sir@cmpwn.com>2019-04-08 14:03:15 -0600
commitb6d0de177adaeeb0f5990613b52d50520bc15301 (patch)
tree4b76469ff83fbba9a24cac0a1aed80aea3ee0f45 /backend/headless
parent670c787fa7c8e71ed4966ae12fa70c91751eea21 (diff)
backend: unbreak on 32-bit architectures
backend/headless/output.c:132:3: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++backend->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend/noop/output.c:72:3: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++backend->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend/wayland/output.c:294:3: error: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++backend->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend/x11/output.c:150:3: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++x11->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c
index d200aa58..b3b41d46 100644
--- a/backend/headless/output.c
+++ b/backend/headless/output.c
@@ -128,7 +128,7 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend,
output_set_custom_mode(wlr_output, width, height, 0);
strncpy(wlr_output->make, "headless", sizeof(wlr_output->make));
strncpy(wlr_output->model, "headless", sizeof(wlr_output->model));
- snprintf(wlr_output->name, sizeof(wlr_output->name), "HEADLESS-%ld",
+ snprintf(wlr_output->name, sizeof(wlr_output->name), "HEADLESS-%zd",
++backend->last_output_num);
if (!wlr_egl_make_current(&output->backend->egl, output->egl_surface,