aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-03-10 22:53:09 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-03-13 21:23:02 +0100
commitdfa8bb27bbab2709f0d29fa825a3ebe5e83bcfdb (patch)
treed830c766988dc2c206186b361691e29e04501e30 /nx-X11
parent7a61c62cd6aaabe40d788d3da7f1b736107fbddb (diff)
downloadnx-libs-dfa8bb27bbab2709f0d29fa825a3ebe5e83bcfdb.tar.gz
nx-libs-dfa8bb27bbab2709f0d29fa825a3ebe5e83bcfdb.tar.bz2
nx-libs-dfa8bb27bbab2709f0d29fa825a3ebe5e83bcfdb.zip
Keystroke.c: fix code formatting
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keystroke.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
index 8959768d8..93bb48cba 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
@@ -282,7 +282,7 @@ static void parse_keystroke_file(void)
if (homedir == NULL)
{
fprintf(stderr, "malloc failed");
-exit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
filename = calloc(1, strlen(homefile) + strlen(homedir) + 1);
if (filename == NULL)
@@ -316,7 +316,7 @@ exit(EXIT_FAILURE);
else
{
if (filename)
-free(filename);
+ free(filename);
filename = NULL;
}
}
@@ -336,7 +336,7 @@ free(filename);
for (cur = root; cur; cur = cur->next)
{
if (cur->type == XML_ELEMENT_NODE && strcmp((char *)cur->name, "keystrokes") == 0)
-{
+ {
xmlNode *bindings = NULL;
int num = 0;
int idx = 0;
@@ -351,7 +351,7 @@ free(filename);
map = calloc((num + 1), sizeof(struct nxagentSpecialKeystrokeMap));
if (map == NULL)
{
- fprintf(stderr, "malloc failed");
+ fprintf(stderr, "calloc failed");
exit(EXIT_FAILURE);
}
@@ -388,7 +388,6 @@ static enum nxagentSpecialKeystroke find_keystroke(XKeyEvent *X)
1,
&keysyms_per_keycode_return);
-
struct nxagentSpecialKeystrokeMap *cur = map;
if (! nxagentKeystrokeFileParsed)