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
def30126
Commit
def30126
authored
Jan 08, 2006
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix client non-jpeg/libz builds
parent
e781eea6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
ChangeLog
ChangeLog
+5
-0
pnmshow24.c
examples/pnmshow24.c
+5
-2
vncviewer.c
libvncclient/vncviewer.c
+3
-1
main.c
libvncserver/main.c
+1
-1
No files found.
ChangeLog
View file @
def30126
2006-01-08 Karl Runge <runge@karlrunge.com>
* libvncclient/vncviewer.c: fix non-jpeg/libz builds.
* examples/pnmshow24.c: fix non-ALLOW24BPP builds.
* libvncserver/main.c: fix 'static int' defn.
2006-01-05 Karl Runge <runge@karlrunge.com>
2006-01-05 Karl Runge <runge@karlrunge.com>
* libvncserver/main.c: rfbRegisterProtocolExtension extMutex was
* libvncserver/main.c: rfbRegisterProtocolExtension extMutex was
never initialized.
never initialized.
...
...
examples/pnmshow24.c
View file @
def30126
...
@@ -3,8 +3,10 @@
...
@@ -3,8 +3,10 @@
#include <rfb/keysym.h>
#include <rfb/keysym.h>
#ifndef LIBVNCSERVER_ALLOW24BPP
#ifndef LIBVNCSERVER_ALLOW24BPP
#error "I need the ALLOW24BPP flag to work"
int
main
()
{
#endif
printf
(
"I need the ALLOW24BPP LibVNCSever flag to work
\n
"
);
}
#else
static
void
HandleKey
(
rfbBool
down
,
rfbKeySym
key
,
rfbClientPtr
cl
)
static
void
HandleKey
(
rfbBool
down
,
rfbKeySym
key
,
rfbClientPtr
cl
)
{
{
...
@@ -88,3 +90,4 @@ int main(int argc,char** argv)
...
@@ -88,3 +90,4 @@ int main(int argc,char** argv)
return
(
0
);
return
(
0
);
}
}
#endif
libvncclient/vncviewer.c
View file @
def30126
...
@@ -157,11 +157,11 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
...
@@ -157,11 +157,11 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
#ifdef LIBVNCSERVER_HAVE_LIBZ
#ifdef LIBVNCSERVER_HAVE_LIBZ
client
->
raw_buffer_size
=
-
1
;
client
->
raw_buffer_size
=
-
1
;
client
->
decompStreamInited
=
FALSE
;
client
->
decompStreamInited
=
FALSE
;
#endif
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
memset
(
client
->
zlibStreamActive
,
0
,
sizeof
(
rfbBool
)
*
4
);
memset
(
client
->
zlibStreamActive
,
0
,
sizeof
(
rfbBool
)
*
4
);
client
->
jpegSrcManager
=
NULL
;
client
->
jpegSrcManager
=
NULL
;
#endif
#endif
#endif
client
->
HandleCursorPos
=
DummyPoint
;
client
->
HandleCursorPos
=
DummyPoint
;
...
@@ -252,6 +252,7 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
...
@@ -252,6 +252,7 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
}
}
void
rfbClientCleanup
(
rfbClient
*
client
)
{
void
rfbClientCleanup
(
rfbClient
*
client
)
{
#ifdef LIBVNCSERVER_HAVE_LIBZ
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
int
i
;
int
i
;
...
@@ -271,6 +272,7 @@ void rfbClientCleanup(rfbClient* client) {
...
@@ -271,6 +272,7 @@ void rfbClientCleanup(rfbClient* client) {
if
(
client
->
jpegSrcManager
)
if
(
client
->
jpegSrcManager
)
free
(
client
->
jpegSrcManager
);
free
(
client
->
jpegSrcManager
);
#endif
#endif
#endif
free
(
client
->
desktopName
);
free
(
client
->
desktopName
);
...
...
libvncserver/main.c
View file @
def30126
...
@@ -61,7 +61,7 @@ void
...
@@ -61,7 +61,7 @@ void
rfbRegisterProtocolExtension
(
rfbProtocolExtension
*
extension
)
rfbRegisterProtocolExtension
(
rfbProtocolExtension
*
extension
)
{
{
rfbProtocolExtension
*
last
;
rfbProtocolExtension
*
last
;
static
extMutex_initialized
=
0
;
static
int
extMutex_initialized
=
0
;
if
(
!
extMutex_initialized
)
{
if
(
!
extMutex_initialized
)
{
INIT_MUTEX
(
extMutex
);
INIT_MUTEX
(
extMutex
);
...
...
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