aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/test/xkb.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-03-23 10:05:55 +0100
committermarha <marha@users.sourceforge.net>2012-03-23 10:05:55 +0100
commit0f834b91a4768673833ab4917e87d86c237bb1a6 (patch)
tree363489504ed4b2d360259b8de4c9e392918e5d02 /xorg-server/test/xkb.c
parentfc72edebf875378459368c5383d9023730cbca54 (diff)
downloadvcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.gz
vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.bz2
vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.zip
libX11 xserver fontconfig mesa pixman xkbcomp xkeyboard-config git update
23 Mar 2012
Diffstat (limited to 'xorg-server/test/xkb.c')
-rw-r--r--xorg-server/test/xkb.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/xorg-server/test/xkb.c b/xorg-server/test/xkb.c
index 421153cd1..955e72dff 100644
--- a/xorg-server/test/xkb.c
+++ b/xorg-server/test/xkb.c
@@ -55,12 +55,12 @@
*
* Result: RMLVO defaults are the same as obtained.
*/
-static void xkb_get_rules_test(void)
+static void
+xkb_get_rules_test(void)
{
- XkbRMLVOSet rmlvo = { NULL};
+ XkbRMLVOSet rmlvo = { NULL };
XkbGetRulesDflts(&rmlvo);
-
assert(rmlvo.rules);
assert(rmlvo.model);
assert(rmlvo.layout);
@@ -79,7 +79,8 @@ static void xkb_get_rules_test(void)
* Compare obtained ruleset with the built-in defaults.
* Result: RMLVO defaults are the same as obtained.
*/
-static void xkb_set_rules_test(void)
+static void
+xkb_set_rules_test(void)
{
XkbRMLVOSet rmlvo = {
.rules = "test-rules",
@@ -107,7 +108,6 @@ static void xkb_set_rules_test(void)
assert(strcmp(rmlvo.options, rmlvo_new.options) == 0);
}
-
/**
* Get the default RMLVO set.
* Set the default RMLVO set.
@@ -116,7 +116,8 @@ static void xkb_set_rules_test(void)
*
* Result: RMLVO set obtained is the same as previously set.
*/
-static void xkb_set_get_rules_test(void)
+static void
+xkb_set_get_rules_test(void)
{
/* This test failed before XkbGetRulesDftlts changed to strdup.
We test this twice because the first time using XkbGetRulesDflts we obtain
@@ -158,8 +159,8 @@ static void xkb_set_get_rules_test(void)
assert(strcmp(rmlvo.options, rmlvo_backup.options) == 0);
}
-
-int main(int argc, char** argv)
+int
+main(int argc, char **argv)
{
xkb_set_get_rules_test();
xkb_get_rules_test();