Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
dfa8bb27
Commit
dfa8bb27
authored
Mar 10, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keystroke.c: fix code formatting
parent
7a61c62c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Keystroke.c
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+4
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
View file @
dfa8bb27
...
...
@@ -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
,
"
m
alloc failed"
);
fprintf
(
stderr
,
"
c
alloc 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment