summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2015-01-23 11:33:58 -0800
committerJay Sorg <jay.sorg@gmail.com>2015-01-23 11:33:58 -0800
commitc33b4a7d5fe4c8ec6abef477a3be14bec4302ff0 (patch)
treeb9b465033bef06015146124e7a111246fa5b2df1 /vnc
parent402c143af9ea3da43a801d79a3c766a4a46b0e86 (diff)
downloadxrdp-proprietary-c33b4a7d5fe4c8ec6abef477a3be14bec4302ff0.tar.gz
xrdp-proprietary-c33b4a7d5fe4c8ec6abef477a3be14bec4302ff0.zip
remove some warnings
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index ed7173a5..4deb55da 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -21,6 +21,20 @@
#include "vnc.h"
#include "log.h"
+#define LLOG_LEVEL 1
+#define LLOGLN(_level, _args) \
+ do \
+ { \
+ if (_level < LLOG_LEVEL) \
+ { \
+ g_write("xrdp:vnc [%10.10u]: ", g_time3()); \
+ g_writeln _args ; \
+ } \
+ } \
+ while (0)
+
+#define AS_LOG_MESSAGE log_message
+
/******************************************************************************/
/* taken from vncauth.c */
void DEFAULT_CC
@@ -309,7 +323,6 @@ lib_mod_event(struct vnc *v, int msg, long param1, long param2,
int chanid;
int flags;
char *data;
- char text[256];
error = 0;
make_stream(s);
@@ -912,7 +925,6 @@ lib_palette_update(struct vnc *v)
int DEFAULT_CC
lib_bell_trigger(struct vnc *v)
{
- struct stream *s;
int error;
error = v->server_bell_trigger(v);