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
1b51530a
Commit
1b51530a
authored
Jul 04, 2006
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: remove compiler warnings; HP-UX tweaks.
parent
a7726a6f
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
36 additions
and
17 deletions
+36
-17
configure.ac
configure.ac
+7
-0
README
x11vnc/README
+1
-1
inet.c
x11vnc/inet.c
+1
-1
keyboard.c
x11vnc/keyboard.c
+1
-1
sslhelper.c
x11vnc/sslhelper.c
+8
-0
unixpw.c
x11vnc/unixpw.c
+3
-3
user.c
x11vnc/user.c
+2
-2
util.c
x11vnc/util.c
+3
-3
v4l.c
x11vnc/v4l.c
+2
-2
x11vnc.c
x11vnc/x11vnc.c
+4
-4
x11vnc.h
x11vnc/x11vnc.h
+4
-0
No files found.
configure.ac
View file @
1b51530a
...
@@ -445,6 +445,13 @@ AC_FUNC_VPRINTF
...
@@ -445,6 +445,13 @@ AC_FUNC_VPRINTF
AC_FUNC_FORK
AC_FUNC_FORK
AC_CHECK_LIB(nsl,gethostbyname)
AC_CHECK_LIB(nsl,gethostbyname)
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(socket,socket)
uname_s=`(uname -s) 2>/dev/null`
if test "x$uname_s" = "xHP-UX"; then
# need -lsec for getspnam()
LDFLAGS="$LDFLAGS -lsec"
fi
AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr setsid setpgrp getpwuid getpwnam getspnam getuid geteuid setuid setgid seteuid setegid waitpid setutxent grantpt])
AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr setsid setpgrp getpwuid getpwnam getspnam getuid geteuid setuid setgid seteuid setegid waitpid setutxent grantpt])
# check, if shmget is in cygipc.a
# check, if shmget is in cygipc.a
...
...
x11vnc/README
View file @
1b51530a
x11vnc
README
file
Date
:
Tue
Jul
4
1
2
:
02
:
5
5
EDT
2006
x11vnc
README
file
Date
:
Tue
Jul
4
1
4
:
26
:
1
5
EDT
2006
The
following
information
is
taken
from
these
URLs
:
The
following
information
is
taken
from
these
URLs
:
...
...
x11vnc/inet.c
View file @
1b51530a
...
@@ -97,7 +97,7 @@ char *ip2host(char *ip) {
...
@@ -97,7 +97,7 @@ char *ip2host(char *ip) {
int
dotted_ip
(
char
*
host
)
{
int
dotted_ip
(
char
*
host
)
{
char
*
p
=
host
;
char
*
p
=
host
;
while
(
*
p
!=
'\0'
)
{
while
(
*
p
!=
'\0'
)
{
if
(
*
p
==
'.'
||
isdigit
(
*
p
))
{
if
(
*
p
==
'.'
||
isdigit
(
(
unsigned
char
)
(
*
p
)
))
{
p
++
;
p
++
;
continue
;
continue
;
}
}
...
...
x11vnc/keyboard.c
View file @
1b51530a
...
@@ -579,7 +579,7 @@ static void add_dead_keysyms(char *str) {
...
@@ -579,7 +579,7 @@ static void add_dead_keysyms(char *str) {
p
=
str
;
p
=
str
;
while
(
*
p
!=
'\0'
)
{
while
(
*
p
!=
'\0'
)
{
if
(
isspace
(
*
p
))
{
if
(
isspace
(
(
unsigned
char
)
(
*
p
)
))
{
*
p
=
'\0'
;
*
p
=
'\0'
;
}
}
p
++
;
p
++
;
...
...
x11vnc/sslhelper.c
View file @
1b51530a
...
@@ -1170,7 +1170,11 @@ static void csock_timeout (int sig) {
...
@@ -1170,7 +1170,11 @@ static void csock_timeout (int sig) {
static
int
wait_conn
(
int
sock
)
{
static
int
wait_conn
(
int
sock
)
{
int
conn
;
int
conn
;
struct
sockaddr_in
addr
;
struct
sockaddr_in
addr
;
#ifdef __hpux
int
addrlen
=
sizeof
(
addr
);
#else
socklen_t
addrlen
=
sizeof
(
addr
);
socklen_t
addrlen
=
sizeof
(
addr
);
#endif
signal
(
SIGALRM
,
csock_timeout
);
signal
(
SIGALRM
,
csock_timeout
);
csock_timeout_sock
=
sock
;
csock_timeout_sock
=
sock
;
...
@@ -1262,7 +1266,11 @@ void accept_openssl(int mode) {
...
@@ -1262,7 +1266,11 @@ void accept_openssl(int mode) {
int
sock
=
-
1
,
listen
=
-
1
,
cport
,
csock
,
vsock
;
int
sock
=
-
1
,
listen
=
-
1
,
cport
,
csock
,
vsock
;
int
status
,
n
,
i
,
db
=
0
;
int
status
,
n
,
i
,
db
=
0
;
struct
sockaddr_in
addr
;
struct
sockaddr_in
addr
;
#ifdef __hpux
int
addrlen
=
sizeof
(
addr
);
#else
socklen_t
addrlen
=
sizeof
(
addr
);
socklen_t
addrlen
=
sizeof
(
addr
);
#endif
rfbClientPtr
client
;
rfbClientPtr
client
;
pid_t
pid
;
pid_t
pid
;
char
uniq
[]
=
"__evilrats__"
;
char
uniq
[]
=
"__evilrats__"
;
...
...
x11vnc/unixpw.c
View file @
1b51530a
...
@@ -358,7 +358,7 @@ int crypt_verify(char *user, char *pass) {
...
@@ -358,7 +358,7 @@ int crypt_verify(char *user, char *pass) {
if
(
db
>
1
)
fprintf
(
stderr
,
"realpw='%s'
\n
"
,
realpw
);
if
(
db
>
1
)
fprintf
(
stderr
,
"realpw='%s'
\n
"
,
realpw
);
if
(
strlen
(
realpw
)
<
1
0
)
{
if
(
strlen
(
realpw
)
<
1
2
)
{
/* e.g. "x", try getspnam(), sometimes root for inetd, etc */
/* e.g. "x", try getspnam(), sometimes root for inetd, etc */
#if LIBVNCSERVER_HAVE_GETSPNAM
#if LIBVNCSERVER_HAVE_GETSPNAM
struct
spwd
*
sp
=
getspnam
(
user
);
struct
spwd
*
sp
=
getspnam
(
user
);
...
@@ -680,11 +680,11 @@ if (db) fprintf(stderr, "%s", buf);
...
@@ -680,11 +680,11 @@ if (db) fprintf(stderr, "%s", buf);
}
}
if
(
n
==
1
)
{
if
(
n
==
1
)
{
if
(
isspace
(
buf
[
0
]))
{
if
(
isspace
(
(
unsigned
char
)
buf
[
0
]))
{
i
--
;
i
--
;
continue
;
continue
;
}
}
instr
[
j
++
]
=
tolower
(
buf
[
0
]);
instr
[
j
++
]
=
tolower
(
(
unsigned
char
)
buf
[
0
]);
}
}
if
(
n
<=
0
||
strstr
(
pstr
,
instr
)
!=
pstr
)
{
if
(
n
<=
0
||
strstr
(
pstr
,
instr
)
!=
pstr
)
{
if
(
db
)
{
if
(
db
)
{
...
...
x11vnc/user.c
View file @
1b51530a
...
@@ -244,7 +244,7 @@ static void user2uid(char *user, uid_t *uid, char **name, char **home) {
...
@@ -244,7 +244,7 @@ static void user2uid(char *user, uid_t *uid, char **name, char **home) {
q
=
user
;
q
=
user
;
while
(
*
q
)
{
while
(
*
q
)
{
if
(
!
isdigit
(
*
q
++
))
{
if
(
!
isdigit
(
(
unsigned
char
)
(
*
q
++
)
))
{
numerical
=
0
;
numerical
=
0
;
break
;
break
;
}
}
...
@@ -810,7 +810,7 @@ int read_passwds(char *passfile) {
...
@@ -810,7 +810,7 @@ int read_passwds(char *passfile) {
}
}
p
=
line
;
p
=
line
;
while
(
*
p
!=
'\0'
)
{
while
(
*
p
!=
'\0'
)
{
if
(
!
isspace
(
*
p
))
{
if
(
!
isspace
(
(
unsigned
char
)
(
*
p
)
))
{
blank
=
0
;
blank
=
0
;
break
;
break
;
}
}
...
...
x11vnc/util.c
View file @
1b51530a
...
@@ -103,7 +103,7 @@ void lowercase(char *str) {
...
@@ -103,7 +103,7 @@ void lowercase(char *str) {
}
}
p
=
str
;
p
=
str
;
while
(
*
p
!=
'\0'
)
{
while
(
*
p
!=
'\0'
)
{
*
p
=
tolower
(
*
p
);
*
p
=
tolower
(
(
unsigned
char
)
(
*
p
)
);
p
++
;
p
++
;
}
}
}
}
...
@@ -115,7 +115,7 @@ void uppercase(char *str) {
...
@@ -115,7 +115,7 @@ void uppercase(char *str) {
}
}
p
=
str
;
p
=
str
;
while
(
*
p
!=
'\0'
)
{
while
(
*
p
!=
'\0'
)
{
*
p
=
toupper
(
*
p
);
*
p
=
toupper
(
(
unsigned
char
)
(
*
p
)
);
p
++
;
p
++
;
}
}
}
}
...
@@ -123,7 +123,7 @@ void uppercase(char *str) {
...
@@ -123,7 +123,7 @@ void uppercase(char *str) {
char
*
lblanks
(
char
*
str
)
{
char
*
lblanks
(
char
*
str
)
{
char
*
p
=
str
;
char
*
p
=
str
;
while
(
*
p
!=
'\0'
)
{
while
(
*
p
!=
'\0'
)
{
if
(
!
isspace
(
*
p
))
{
if
(
!
isspace
(
(
unsigned
char
)
(
*
p
)
))
{
break
;
break
;
}
}
p
++
;
p
++
;
...
...
x11vnc/v4l.c
View file @
1b51530a
...
@@ -1471,7 +1471,7 @@ static void init_freqtab(char *file) {
...
@@ -1471,7 +1471,7 @@ static void init_freqtab(char *file) {
if
(
*
q
==
']'
)
{
if
(
*
q
==
']'
)
{
break
;
break
;
}
}
if
(
!
isdigit
(
*
q
))
{
if
(
!
isdigit
(
(
unsigned
char
)
(
*
q
)
))
{
if
(
0
)
fprintf
(
stderr
,
"extra: %s
\n
"
,
p
);
if
(
0
)
fprintf
(
stderr
,
"extra: %s
\n
"
,
p
);
extra
++
;
extra
++
;
ok
=
0
;
ok
=
0
;
...
@@ -1508,7 +1508,7 @@ static void init_freqtab(char *file) {
...
@@ -1508,7 +1508,7 @@ static void init_freqtab(char *file) {
if
(
*
q
==
']'
)
{
if
(
*
q
==
']'
)
{
break
;
break
;
}
}
if
(
!
isdigit
(
*
q
))
{
if
(
!
isdigit
(
(
unsigned
char
)
(
*
q
)
))
{
extra
++
;
extra
++
;
currn
=
maxn
+
extra
;
currn
=
maxn
+
extra
;
ok
=
0
;
ok
=
0
;
...
...
x11vnc/x11vnc.c
View file @
1b51530a
...
@@ -754,7 +754,7 @@ static void check_rcfile(int argc, char **argv) {
...
@@ -754,7 +754,7 @@ static void check_rcfile(int argc, char **argv) {
*
(
q
-
1
)
=
' '
;
*
(
q
-
1
)
=
' '
;
break
;
break
;
}
}
while
(
isspace
(
*
q
))
{
while
(
isspace
(
(
unsigned
char
)
(
*
q
)
))
{
*
q
=
'\0'
;
*
q
=
'\0'
;
if
(
q
==
p
)
{
if
(
q
==
p
)
{
break
;
break
;
...
@@ -770,7 +770,7 @@ static void check_rcfile(int argc, char **argv) {
...
@@ -770,7 +770,7 @@ static void check_rcfile(int argc, char **argv) {
if
(
*
q
==
'\0'
)
{
if
(
*
q
==
'\0'
)
{
q
--
;
q
--
;
}
}
while
(
isspace
(
*
q
))
{
while
(
isspace
(
(
unsigned
char
)
(
*
q
)
))
{
*
q
=
'\0'
;
*
q
=
'\0'
;
if
(
q
==
p
)
{
if
(
q
==
p
)
{
break
;
break
;
...
@@ -793,7 +793,7 @@ static void check_rcfile(int argc, char **argv) {
...
@@ -793,7 +793,7 @@ static void check_rcfile(int argc, char **argv) {
q
=
buf
;
q
=
buf
;
while
(
*
q
)
{
while
(
*
q
)
{
i
++
;
i
++
;
if
(
*
q
==
'\n'
||
isspace
(
*
q
))
{
if
(
*
q
==
'\n'
||
isspace
(
(
unsigned
char
)
(
*
q
)
))
{
break
;
break
;
}
}
q
++
;
q
++
;
...
@@ -1916,7 +1916,7 @@ int main(int argc, char* argv[]) {
...
@@ -1916,7 +1916,7 @@ int main(int argc, char* argv[]) {
if
(
*
s
==
'-'
)
{
if
(
*
s
==
'-'
)
{
s
++
;
s
++
;
}
}
if
(
isdigit
(
*
s
))
{
if
(
isdigit
(
(
unsigned
char
)
(
*
s
)
))
{
no_repeat_countdown
=
atoi
(
argv
[
++
i
]);
no_repeat_countdown
=
atoi
(
argv
[
++
i
]);
}
}
}
}
...
...
x11vnc/x11vnc.h
View file @
1b51530a
...
@@ -19,6 +19,10 @@
...
@@ -19,6 +19,10 @@
#include <unistd.h>
#include <unistd.h>
#include <signal.h>
#include <signal.h>
#include <sys/utsname.h>
#include <sys/utsname.h>
#ifdef __hpux
/* to avoid select() compiler warning */
#include <sys/time.h>
#endif
#include <time.h>
#include <time.h>
#include <errno.h>
#include <errno.h>
...
...
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