summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-07-17 10:20:15 +0100
committerDaniel Stone <daniel@fooishbar.org>2012-07-17 10:20:15 +0100
commit9308a460395679aa3cb403211146e4ff9b920992 (patch)
treea060f3f7882c8edf35312c2210d9837ac3a4c306 /src/utils.c
parentc6c937abc2e7e9aa9dc952dea392329b88ab1011 (diff)
downloadlibxkbcommon-9308a460395679aa3cb403211146e4ff9b920992.tar.gz
libxkbcommon-9308a460395679aa3cb403211146e4ff9b920992.tar.bz2
libxkbcommon-9308a460395679aa3cb403211146e4ff9b920992.zip
Run source tree through uncrustify
.uncrustify.cfg committed for future reference also, but had to manually fix up a few things: it really likes justifying struct initialisers. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c57
1 files changed, 27 insertions, 30 deletions
diff --git a/src/utils.c b/src/utils.c
index 57b4905..84dce22 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,29 +1,28 @@
-
- /*\
- *
- * COPYRIGHT 1990
- * DIGITAL EQUIPMENT CORPORATION
- * MAYNARD, MASSACHUSETTS
- * ALL RIGHTS RESERVED.
- *
- * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
- * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
- * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE
- * FOR ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED
- * WARRANTY.
- *
- * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT
- * RIGHTS, APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN
- * ADDITION TO THAT SET FORTH ABOVE.
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose and without fee is hereby granted, provided
- * that the above copyright notice appear in all copies and that both that
- * copyright notice and this permission notice appear in supporting
- * documentation, and that the name of Digital Equipment Corporation not be
- * used in advertising or publicity pertaining to distribution of the
- * software without specific, written prior permission.
- \*/
+/*\
+ *
+ * COPYRIGHT 1990
+ * DIGITAL EQUIPMENT CORPORATION
+ * MAYNARD, MASSACHUSETTS
+ * ALL RIGHTS RESERVED.
+ *
+ * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
+ * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
+ * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE
+ * FOR ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED
+ * WARRANTY.
+ *
+ * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT
+ * RIGHTS, APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN
+ * ADDITION TO THAT SET FORTH ABOVE.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Digital Equipment Corporation not be
+ * used in advertising or publicity pertaining to distribution of the
+ * software without specific, written prior permission.
+ \*/
#include <ctype.h>
#include <stdlib.h>
@@ -40,8 +39,7 @@ static char *prefix = NULL;
bool
uSetErrorFile(char *name)
{
- if ((errorFile != NULL) && (errorFile != stderr))
- {
+ if ((errorFile != NULL) && (errorFile != stderr)) {
fprintf(errorFile, "switching to %s\n", name ? name : "stderr");
fclose(errorFile);
}
@@ -49,8 +47,7 @@ uSetErrorFile(char *name)
errorFile = fopen(name, "w");
else
errorFile = stderr;
- if (errorFile == NULL)
- {
+ if (errorFile == NULL) {
errorFile = stderr;
return false;
}