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
2a97ab86
Commit
2a97ab86
authored
May 09, 2012
by
Christian Beier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some compiler warnings that hinted some no too unimportant errors.
parent
ab74d36d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
TODO
TODO
+1
-0
rfbproto.c
libvncclient/rfbproto.c
+2
-2
sockets.c
libvncclient/sockets.c
+1
-1
LinuxVNC.c
vncterm/LinuxVNC.c
+4
-1
No files found.
TODO
View file @
2a97ab86
...
@@ -2,6 +2,7 @@ immediate:
...
@@ -2,6 +2,7 @@ immediate:
----------
----------
- Add sources for the java stuff.
- Add sources for the java stuff.
- Implement encryption in libvncserver.
- Implement encryption in libvncserver.
- Add a libvncclient-config script.
make SDLvncviewer more versatile
make SDLvncviewer more versatile
- test for missing keys (especially "[]{}" with ./examples/mac),
- test for missing keys (especially "[]{}" with ./examples/mac),
...
...
libvncclient/rfbproto.c
View file @
2a97ab86
...
@@ -387,8 +387,8 @@ ConnectToRFBServer(rfbClient* client,const char *hostname, int port)
...
@@ -387,8 +387,8 @@ ConnectToRFBServer(rfbClient* client,const char *hostname, int port)
return
FALSE
;
return
FALSE
;
}
}
setbuf
(
rec
->
file
,
NULL
);
setbuf
(
rec
->
file
,
NULL
);
fread
(
buffer
,
1
,
strlen
(
magic
),
rec
->
file
);
if
(
strncmp
(
buffer
,
magic
,
strlen
(
magic
)))
{
if
(
fread
(
buffer
,
1
,
strlen
(
magic
),
rec
->
file
)
!=
strlen
(
magic
)
||
strncmp
(
buffer
,
magic
,
strlen
(
magic
)))
{
rfbClientLog
(
"File %s was not recorded by vncrec.
\n
"
,
client
->
serverHost
);
rfbClientLog
(
"File %s was not recorded by vncrec.
\n
"
,
client
->
serverHost
);
fclose
(
rec
->
file
);
fclose
(
rec
->
file
);
return
FALSE
;
return
FALSE
;
...
...
libvncclient/sockets.c
View file @
2a97ab86
...
@@ -111,7 +111,7 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
...
@@ -111,7 +111,7 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
rec
->
tv
=
tv
;
rec
->
tv
=
tv
;
}
}
return
(
fread
(
out
,
1
,
n
,
rec
->
file
)
<
0
?
FALSE
:
TRUE
);
return
(
fread
(
out
,
1
,
n
,
rec
->
file
)
!=
n
?
FALSE
:
TRUE
);
}
}
if
(
n
<=
client
->
buffered
)
{
if
(
n
<=
client
->
buffered
)
{
...
...
vncterm/LinuxVNC.c
View file @
2a97ab86
...
@@ -152,7 +152,10 @@ int main(int argc,char **argv)
...
@@ -152,7 +152,10 @@ int main(int argc,char **argv)
#ifdef USE_OLD_VCS
#ifdef USE_OLD_VCS
fread
(
buffer
,
width
,
height
,
tty_file
);
fread
(
buffer
,
width
,
height
,
tty_file
);
#else
#else
fread
(
buffer
,
width
*
height
*
2
+
4
,
1
,
tty_file
);
if
(
fread
(
buffer
,
width
*
height
*
2
+
4
,
1
,
tty_file
)
!=
1
)
{
rfbErr
(
"Error reading framebuffer
\n
"
);
exit
(
1
);
}
vcHideCursor
(
console
);
vcHideCursor
(
console
);
#endif
#endif
fclose
(
tty_file
);
fclose
(
tty_file
);
...
...
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