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
2f2a8ee0
Commit
2f2a8ee0
authored
Sep 01, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init.c: some scope improvements
parent
c6498ddb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+5
-12
No files found.
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
2f2a8ee0
...
...
@@ -221,15 +221,6 @@ void checkX2goAgent(void)
void
InitOutput
(
ScreenInfo
*
screenInfo
,
int
argc
,
char
*
argv
[])
{
char
*
authority
;
int
i
;
#ifdef __sun
char
*
environment
;
#endif
/*
* Print our pid and version information.
*/
...
...
@@ -295,11 +286,13 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
}
#endif
if
((
authority
=
getenv
(
"NX_XAUTHORITY"
)))
char
*
authority
=
getenv
(
"NX_XAUTHORITY"
);
if
(
authority
)
{
#ifdef __sun
environment
=
malloc
(
15
+
strlen
(
authority
));
char
*
environment
=
malloc
(
15
+
strlen
(
authority
));
sprintf
(
environment
,
"XAUTHORITY=%s"
,
authority
);
...
...
@@ -391,7 +384,7 @@ FIXME: These variables, if not removed at all because have probably
nxagentNumScreens
=
1
;
}
for
(
i
=
0
;
i
<
nxagentNumScreens
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
nxagentNumScreens
;
i
++
)
{
AddScreen
(
nxagentOpenScreen
,
argc
,
argv
);
}
...
...
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