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
3bd7e03e
Commit
3bd7e03e
authored
Dec 02, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxcomp: remove unused return values
Some functions' return values are never used anywhere, so drop them.
parent
82e893ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
19 deletions
+12
-19
Loop.cpp
nxcomp/src/Loop.cpp
+12
-19
No files found.
nxcomp/src/Loop.cpp
View file @
3bd7e03e
...
...
@@ -391,7 +391,7 @@ static int CheckProcess(int pid, const char *label);
// Start or restart the house-keeper process.
//
static
int
StartKeeper
();
static
void
StartKeeper
();
//
// Cleanup functions.
...
...
@@ -425,10 +425,10 @@ static int SetupProxyInstance();
static
int
SetupAuthInstance
();
static
int
SetupAgentInstance
();
static
int
SetupTcpSocket
();
static
int
SetupUnixSocket
();
static
int
SetupServiceSockets
();
static
int
SetupDisplaySocket
(
int
&
addr_family
,
sockaddr
*&
addr
,
static
void
SetupTcpSocket
();
static
void
SetupUnixSocket
();
static
void
SetupServiceSockets
();
static
void
SetupDisplaySocket
(
int
&
addr_family
,
sockaddr
*&
addr
,
unsigned
int
&
addr_length
);
//
...
...
@@ -3735,17 +3735,16 @@ int SetupAgentInstance()
return
1
;
}
int
SetupTcpSocket
()
void
SetupTcpSocket
()
{
//
// Open TCP socket emulating local display.
//
tcpFD
=
ListenConnectionTCP
((
loopbackBind
?
"localhost"
:
"*"
),
X_TCP_PORT
+
proxyPort
,
"X11"
);
return
1
;
}
int
SetupUnixSocket
()
void
SetupUnixSocket
()
{
//
// Open UNIX domain socket for display.
...
...
@@ -3764,7 +3763,7 @@ int SetupUnixSocket()
unixFD
=
ListenConnectionUnix
(
unixSocketName
,
"x11"
);
if
(
unixFD
>=
0
)
chmod
(
unixSocketName
,
0777
);
return
unixFD
;
return
;
}
}
...
...
@@ -3782,7 +3781,7 @@ int SetupUnixSocket()
// implementation.
//
int
SetupDisplaySocket
(
int
&
addr_family
,
sockaddr
*&
addr
,
void
SetupDisplaySocket
(
int
&
addr_family
,
sockaddr
*&
addr
,
unsigned
int
&
addr_length
)
{
addr_family
=
AF_INET
;
...
...
@@ -3949,7 +3948,7 @@ int SetupDisplaySocket(int &addr_family, sockaddr *&addr,
close
(
testSocketFD
);
addr
=
(
sockaddr
*
)
xServerAddrABSTRACT
;
return
1
;
return
;
}
else
{
...
...
@@ -4062,11 +4061,9 @@ int SetupDisplaySocket(int &addr_family, sockaddr *&addr,
}
delete
[]
display
;
return
1
;
}
int
SetupServiceSockets
()
void
SetupServiceSockets
()
{
if
(
control
->
ProxyMode
==
proxy_client
)
{
...
...
@@ -4149,8 +4146,6 @@ int SetupServiceSockets()
useSlaveSocket
=
0
;
}
}
return
1
;
}
int
ListenConnectionAny
(
sockaddr
*
addr
,
socklen_t
addrlen
,
const
char
*
label
)
...
...
@@ -4454,7 +4449,7 @@ int CheckProcess(int pid, const char *label)
return
1
;
}
int
StartKeeper
()
void
StartKeeper
()
{
if
(
IsRunning
(
lastKeeper
)
==
1
||
...
...
@@ -4512,8 +4507,6 @@ int StartKeeper()
<<
"with persistent cache not enabled.
\n
"
<<
std
::
flush
;
}
return
1
;
}
void
HandleCleanupForReconnect
()
...
...
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