diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2015-01-23 11:33:58 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2015-01-23 11:33:58 -0800 |
commit | c33b4a7d5fe4c8ec6abef477a3be14bec4302ff0 (patch) | |
tree | b9b465033bef06015146124e7a111246fa5b2df1 /vnc | |
parent | 402c143af9ea3da43a801d79a3c766a4a46b0e86 (diff) | |
download | xrdp-proprietary-c33b4a7d5fe4c8ec6abef477a3be14bec4302ff0.tar.gz xrdp-proprietary-c33b4a7d5fe4c8ec6abef477a3be14bec4302ff0.zip |
remove some warnings
Diffstat (limited to 'vnc')
-rw-r--r-- | vnc/vnc.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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); |