Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
rasky
libvncserver
Commits
026c48e7
Commit
026c48e7
authored
Sep 20, 2014
by
Daniel Cohen Gindi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a violation of the C89 standard ("declarations must come before instructions")
parent
7f8520d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
httpd.c
libvncserver/httpd.c
+6
-4
rfbserver.c
libvncserver/rfbserver.c
+4
-2
sockets.c
libvncserver/sockets.c
+6
-4
No files found.
libvncserver/httpd.c
View file @
026c48e7
...
...
@@ -392,11 +392,13 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
getpeername
(
rfbScreen
->
httpSock
,
(
struct
sockaddr
*
)
&
addr
,
&
addrlen
);
#ifdef LIBVNCSERVER_IPv6
{
char
host
[
1024
];
if
(
getnameinfo
((
struct
sockaddr
*
)
&
addr
,
addrlen
,
host
,
sizeof
(
host
),
NULL
,
0
,
NI_NUMERICHOST
)
!=
0
)
{
rfbLogPerror
(
"httpProcessInput: error in getnameinfo"
);
}
rfbLog
(
"httpd: get '%s' for %s
\n
"
,
fname
+
1
,
host
);
}
#else
rfbLog
(
"httpd: get '%s' for %s
\n
"
,
fname
+
1
,
inet_ntoa
(
addr
.
sin_addr
));
...
...
libvncserver/rfbserver.c
View file @
026c48e7
...
...
@@ -321,11 +321,13 @@ rfbNewTCPOrUDPClient(rfbScreenInfoPtr rfbScreen,
if
(
isUDP
)
{
rfbLog
(
" accepted UDP client
\n
"
);
}
else
{
#ifdef LIBVNCSERVER_IPv6
char
host
[
1024
];
#endif
int
one
=
1
;
getpeername
(
sock
,
(
struct
sockaddr
*
)
&
addr
,
&
addrlen
);
#ifdef LIBVNCSERVER_IPv6
char
host
[
1024
];
if
(
getnameinfo
((
struct
sockaddr
*
)
&
addr
,
addrlen
,
host
,
sizeof
(
host
),
NULL
,
0
,
NI_NUMERICHOST
)
!=
0
)
{
rfbLogPerror
(
"rfbNewClient: error in getnameinfo"
);
cl
->
host
=
strdup
(
""
);
...
...
libvncserver/sockets.c
View file @
026c48e7
...
...
@@ -455,11 +455,13 @@ rfbProcessNewConnection(rfbScreenInfoPtr rfbScreen)
#endif
#ifdef LIBVNCSERVER_IPv6
{
char
host
[
1024
];
if
(
getnameinfo
((
struct
sockaddr
*
)
&
addr
,
addrlen
,
host
,
sizeof
(
host
),
NULL
,
0
,
NI_NUMERICHOST
)
!=
0
)
{
rfbLogPerror
(
"rfbProcessNewConnection: error in getnameinfo"
);
}
rfbLog
(
"Got connection from client %s
\n
"
,
host
);
}
#else
rfbLog
(
"Got connection from client %s
\n
"
,
inet_ntoa
(
addr
.
sin_addr
));
#endif
...
...
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