From: Orestis Floros Date: Tue, 21 Aug 2018 18:04:46 +0000 (+0300) Subject: property_notify: use NUM_HANDLERS X-Git-Tag: 4.16~57^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1aa2fb1c441d7c6d8e28d3a53bd0b61374d4c25;p=i3%2Fi3 property_notify: use NUM_HANDLERS --- diff --git a/src/handlers.c b/src/handlers.c index 38c2caf1..2c81939c 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1441,7 +1441,7 @@ static void property_notify(uint8_t state, xcb_window_t window, xcb_atom_t atom) struct property_handler_t *handler = NULL; xcb_get_property_reply_t *propr = NULL; - for (size_t c = 0; c < sizeof(property_handlers) / sizeof(struct property_handler_t); c++) { + for (size_t c = 0; c < NUM_HANDLERS; c++) { if (property_handlers[c].atom != atom) continue;