diff options
author | Arnaud Fontaine <arnau@debian.org> | 2009-12-12 17:03:07 +0100 |
---|---|---|
committer | Arnaud Fontaine <arfontaine@ITEM-58736.dhcp.oxfd.uk.sopra> | 2010-02-11 14:47:30 +0000 |
commit | 943cad8e4ef875ef30ca7efe0de9bb668b30a586 (patch) | |
tree | f385e47dbce54d8dd79c58dfeed325094eae103e | |
parent | 624f99cfa15a6f76b2d9a1d834b9cc629a32260b (diff) |
Use countof when possible
-rw-r--r-- | ewmh/ewmh.c.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ewmh/ewmh.c.m4 b/ewmh/ewmh.c.m4 index bbc75e7..72437fa 100644 --- a/ewmh/ewmh.c.m4 +++ b/ewmh/ewmh.c.m4 @@ -1003,7 +1003,7 @@ xcb_ewmh_set_wm_icon_geometry_checked(xcb_ewmh_connection_t *ewmh, return xcb_change_property_checked(ewmh->connection, XCB_PROP_MODE_REPLACE, window, ewmh->_NET_WM_ICON_GEOMETRY, - CARDINAL, 32, 4, data); + CARDINAL, 32, countof(data), data); } xcb_void_cookie_t @@ -1015,7 +1015,8 @@ xcb_ewmh_set_wm_icon_geometry(xcb_ewmh_connection_t *ewmh, const uint32_t data[] = { left, right, top, bottom }; return xcb_change_property(ewmh->connection, XCB_PROP_MODE_REPLACE, window, - ewmh->_NET_WM_ICON_GEOMETRY, CARDINAL, 32, 4, data); + ewmh->_NET_WM_ICON_GEOMETRY, CARDINAL, 32, + countof(data), data); } DO_GET_PROPERTY(wm_icon_geometry, _NET_WM_ICON_GEOMETRY, CARDINAL, 4) |