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
ba10bcee
Commit
ba10bcee
authored
Jan 21, 2005
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if no argc & argv are passed, honour the serverHost&serverPort which was set by the application
parent
80ca7cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
vncviewer.c
libvncclient/vncviewer.c
+4
-5
No files found.
libvncclient/vncviewer.c
View file @
ba10bcee
...
@@ -108,6 +108,9 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
...
@@ -108,6 +108,9 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
initAppData
(
&
client
->
appData
);
initAppData
(
&
client
->
appData
);
client
->
programName
=
0
;
client
->
programName
=
0
;
client
->
endianTest
=
1
;
client
->
endianTest
=
1
;
client
->
programName
=
""
;
client
->
serverHost
=
""
;
client
->
serverPort
=
5900
;
client
->
format
.
bitsPerPixel
=
bytesPerPixel
*
8
;
client
->
format
.
bitsPerPixel
=
bytesPerPixel
*
8
;
client
->
format
.
depth
=
bitsPerSample
*
samplesPerPixel
;
client
->
format
.
depth
=
bitsPerSample
*
samplesPerPixel
;
...
@@ -188,11 +191,7 @@ static rfbBool rfbInitConnection(rfbClient* client)
...
@@ -188,11 +191,7 @@ static rfbBool rfbInitConnection(rfbClient* client)
rfbBool
rfbInitClient
(
rfbClient
*
client
,
int
*
argc
,
char
**
argv
)
{
rfbBool
rfbInitClient
(
rfbClient
*
client
,
int
*
argc
,
char
**
argv
)
{
int
i
,
j
;
int
i
,
j
;
if
(
argv
==
0
||
argc
==
0
||
*
argc
==
0
)
{
if
(
argv
>
0
&&
argc
&&
*
argc
)
{
client
->
programName
=
""
;
client
->
serverHost
=
""
;
client
->
serverPort
=
5900
;
}
else
{
if
(
client
->
programName
==
0
)
if
(
client
->
programName
==
0
)
client
->
programName
=
argv
[
0
];
client
->
programName
=
argv
[
0
];
...
...
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