summaryrefslogtreecommitdiff
path: root/xserver/xkb/xkbDflts.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2019-07-27 07:57:27 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2019-07-27 07:57:27 +0000
commitd4a0bed4b91da9de86c311c7fef9a8aa9a6f500c (patch)
treea1b439049dee87bc951e190db93f5bbe8b43b0b5 /xserver/xkb/xkbDflts.h
parentb6bc775539a31f663f9e22ce3ccaf0aa96adf3b6 (diff)
Update to xserver 1.20.5. Tested by jsg@
Diffstat (limited to 'xserver/xkb/xkbDflts.h')
-rw-r--r--xserver/xkb/xkbDflts.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xserver/xkb/xkbDflts.h b/xserver/xkb/xkbDflts.h
index 994726c0f..b02dff9de 100644
--- a/xserver/xkb/xkbDflts.h
+++ b/xserver/xkb/xkbDflts.h
@@ -131,7 +131,7 @@ static XkbKeyTypeRec dflt_types[] = {
None, lnames_SHIFT_ALT}
};
-#define num_dflt_types (sizeof(dflt_types)/sizeof(XkbKeyTypeRec))
+#define num_dflt_types ARRAY_SIZE(dflt_types)
static void
initTypeNames(DPYTYPE dpy)
@@ -445,7 +445,7 @@ static XkbSymInterpretRec dfltSI[69] = {
{XkbSA_SetMods, {0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}}
};
-#define num_dfltSI (sizeof(dfltSI)/sizeof(XkbSymInterpretRec))
+#define num_dfltSI ARRAY_SIZE(dfltSI)
static XkbCompatMapRec compatMap = {
dfltSI,