aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/test/xfree86.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/xfree86.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/xfree86.c')
-rw-r--r--xorg-server/test/xfree86.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/xorg-server/test/xfree86.c b/xorg-server/test/xfree86.c
index 448aa915e..f9892e68e 100644
--- a/xorg-server/test/xfree86.c
+++ b/xorg-server/test/xfree86.c
@@ -27,7 +27,6 @@
#include <assert.h>
-
#include "xf86.h"
#include "xf86Parser.h"
@@ -36,11 +35,8 @@ xfree86_option_list_duplicate(void)
{
XF86OptionPtr options;
XF86OptionPtr duplicate;
- const char *o1 = "foo",
- *o2 = "bar",
- *v1 = "one",
- *v2 = "two";
- const char *o_null= "NULL";
+ const char *o1 = "foo", *o2 = "bar", *v1 = "one", *v2 = "two";
+ const char *o_null = "NULL";
char *val1, *val2;
XF86OptionPtr a, b;
@@ -78,10 +74,10 @@ static void
xfree86_add_comment(void)
{
char *current = NULL, *comment;
- char compare[1024] = {0};
+ char compare[1024] = { 0 };
comment = "# foo";
- current = xf86addComment(current, comment);
+ current = xf86addComment(current, comment);
strcpy(compare, comment);
strcat(compare, "\n");
@@ -90,7 +86,7 @@ xfree86_add_comment(void)
/* this used to overflow */
strcpy(current, "\n");
comment = "foobar\n";
- current = xf86addComment(current, comment);
+ current = xf86addComment(current, comment);
strcpy(compare, "\n#");
strcat(compare, comment);
assert(!strcmp(current, compare));
@@ -98,7 +94,8 @@ xfree86_add_comment(void)
free(current);
}
-int main(int argc, char** argv)
+int
+main(int argc, char **argv)
{
xfree86_option_list_duplicate();
xfree86_add_comment();