summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrunge <runge>2009-02-22 03:04:33 +0000
committerrunge <runge>2009-02-22 03:04:33 +0000
commit81cda63cb49d66da1881c577e41364ea84b73ff9 (patch)
tree80f20c131f06dee704728cbaeccfc1e23fa4b737
parentd400112c89cc70eb0a8b3d4c4785b8dc7c8fe658 (diff)
downloadlibtdevnc-81cda63c.tar.gz
libtdevnc-81cda63c.zip
fix some compiler warnings.
-rw-r--r--x11vnc/README2
-rw-r--r--x11vnc/avahi.c7
-rw-r--r--x11vnc/enc.h8
-rw-r--r--x11vnc/selection.c1
4 files changed, 13 insertions, 5 deletions
diff --git a/x11vnc/README b/x11vnc/README
index ba1a3a1..95714b2 100644
--- a/x11vnc/README
+++ b/x11vnc/README
@@ -1,5 +1,5 @@
-x11vnc README file Date: Sat Feb 21 19:25:56 EST 2009
+x11vnc README file Date: Sat Feb 21 21:51:04 EST 2009
The following information is taken from these URLs:
diff --git a/x11vnc/avahi.c b/x11vnc/avahi.c
index 5f4e8ba..ef0571d 100644
--- a/x11vnc/avahi.c
+++ b/x11vnc/avahi.c
@@ -2,6 +2,7 @@
#include "x11vnc.h"
#include "connections.h"
+#include "cleanup.h"
void avahi_initialise(void);
void avahi_advertise(const char *name, const char *host, const uint16_t port);
@@ -136,6 +137,10 @@ void avahi_cleanup(void) {
#include <avahi-client/client.h>
#include <avahi-client/publish.h>
+#include <avahi-common/malloc.h>
+#include <avahi-common/error.h>
+
+
static AvahiThreadedPoll *_poll = NULL;
static AvahiClient *_client = NULL;
static AvahiEntryGroup *_group = NULL;
@@ -242,6 +247,8 @@ if (db) fprintf(stderr, "in _avahi_entry_group_callback %d 0x%p\n", state, svc)
avahi_strerror(avahi_client_errno(
avahi_entry_group_get_client(g))));
break;
+ default:
+ break;
}
if (db) fprintf(stderr, "out _avahi_entry_group_callback\n");
}
diff --git a/x11vnc/enc.h b/x11vnc/enc.h
index bf4fd84..0be3be3 100644
--- a/x11vnc/enc.h
+++ b/x11vnc/enc.h
@@ -591,7 +591,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
EVP_CIPHER_CTX_init(ctx);
if (pw_in) {
/* for pw=xxxx a md5 hash is used */
- EVP_BytesToKey(Cipher, Digest, NULL, keydata,
+ EVP_BytesToKey(Cipher, Digest, NULL, (unsigned char *) keydata,
keydata_len, 1, keystr, NULL);
EVP_CipherInit_ex(ctx, Cipher, NULL, keystr, NULL,
encrypt);
@@ -603,7 +603,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
} else {
/* XXX might not be correct */
exit(1);
- EVP_BytesToKey(Cipher, Digest, NULL, keydata,
+ EVP_BytesToKey(Cipher, Digest, NULL, (unsigned char *) keydata,
keydata_len, 1, keystr, ivec);
EVP_CIPHER_CTX_init(ctx);
EVP_CipherInit_ex(ctx, Cipher, NULL, keystr, ivec,
@@ -646,7 +646,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
} else if (noultra && ivec_size > 0) {
/* "normal" mode, don't overwrite ivec. */
- EVP_BytesToKey(Cipher, Digest, in_salt, keydata,
+ EVP_BytesToKey(Cipher, Digest, in_salt, (unsigned char *) keydata,
keydata_len, 1, keystr, NULL);
} else {
@@ -655,7 +655,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
* clobbers the ivec we set up above! Under
* noultra we overwrite ivec only if ivec_size=0.
*/
- EVP_BytesToKey(Cipher, Digest, in_salt, keydata,
+ EVP_BytesToKey(Cipher, Digest, in_salt, (unsigned char *) keydata,
keydata_len, 1, keystr, ivec);
}
diff --git a/x11vnc/selection.c b/x11vnc/selection.c
index cf99986..8371e34 100644
--- a/x11vnc/selection.c
+++ b/x11vnc/selection.c
@@ -4,6 +4,7 @@
#include "cleanup.h"
#include "connections.h"
#include "unixpw.h"
+#include "win_utils.h"
#include "xwrappers.h"
/*