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
f3d40610
Commit
f3d40610
authored
Apr 20, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nx-X11/programs/Xserver/os/connection.c: compact display autodetection code.
parent
1ccc6be6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
connection.c
nx-X11/programs/Xserver/os/connection.c
+2
-4
No files found.
nx-X11/programs/Xserver/os/connection.c
View file @
f3d40610
...
...
@@ -439,14 +439,12 @@ CreateWellKnownSockets(void)
}
else
{
/* -displayfd and no explicit display number */
Bool
found
=
0
;
#ifdef NXAGENT_SERVER
int
i_offset
=
0
;
#ifdef NXAGENT_SERVER
if
(
explicit_display
)
i_offset
=
atoi
(
display
);
for
(
i
=
i_offset
;
i
<
65536
-
X_TCP_PORT
;
i
++
)
{
#else
for
(
i
=
0
;
i
<
65536
-
X_TCP_PORT
;
i
++
)
{
#endif
/* NXAGENT_SERVER */
for
(
i
=
i_offset
;
i
<
65536
-
X_TCP_PORT
;
i
++
)
{
if
(
TryCreateSocket
(
i
,
&
partial
)
&&
!
partial
)
{
found
=
1
;
break
;
...
...
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