From b94219adeb0b1b0ad6d12bb0b098fbf68dd015e1 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 14 Oct 2021 11:41:28 +0200 Subject: [PATCH] simple-touch: Use true/false instead of 1/0 for bool type Signed-off-by: Emmanuel Gil Peyrot --- clients/simple-touch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/simple-touch.c b/clients/simple-touch.c index 0f550c4a..8ec93019 100644 --- a/clients/simple-touch.c +++ b/clients/simple-touch.c @@ -137,7 +137,7 @@ shm_format(void *data, struct wl_shm *wl_shm, uint32_t format) struct touch *touch = data; if (format == WL_SHM_FORMAT_ARGB8888) - touch->has_argb = 1; + touch->has_argb = true; } struct wl_shm_listener shm_listener = { @@ -370,7 +370,7 @@ touch_create(int width, int height) touch->display = wl_display_connect(NULL); assert(touch->display); - touch->has_argb = 0; + touch->has_argb = false; touch->registry = wl_display_get_registry(touch->display); wl_registry_add_listener(touch->registry, ®istry_listener, touch); wl_display_dispatch(touch->display);