summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/drdynvc.c
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-04-22 23:40:48 -0700
committerPavel Roskin <plroskin@gmail.com>2016-04-23 00:18:38 -0700
commit70f3d4c5e23ab53bf82bc5e2029001896bf3823e (patch)
treede922895b37cef884df737372669ac41241b2dcc /sesman/chansrv/drdynvc.c
parent95e1603f9dda52a7846ad454082712ce9a7aa75e (diff)
downloadxrdp-proprietary-70f3d4c5e23ab53bf82bc5e2029001896bf3823e.tar.gz
xrdp-proprietary-70f3d4c5e23ab53bf82bc5e2029001896bf3823e.zip
Fix warnings for unused variables read from byte streams
Diffstat (limited to 'sesman/chansrv/drdynvc.c')
-rw-r--r--sesman/chansrv/drdynvc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sesman/chansrv/drdynvc.c b/sesman/chansrv/drdynvc.c
index 5c20661e..5b9224ca 100644
--- a/sesman/chansrv/drdynvc.c
+++ b/sesman/chansrv/drdynvc.c
@@ -342,24 +342,24 @@ drdynvc_process_data_first(struct stream *s, unsigned char cmd)
uint32_t chan_id;
int bytes_in_stream;
- int data_len;
int Len;
drdynvc_get_chan_id(s, cmd, &chan_id);
Len = (cmd >> 2) & 0x03;
+ /* skip data_len */
if (Len == 0)
{
- in_uint8(s, data_len);
+ in_uint8s(s, 1);
}
else if (Len == 1)
{
- in_uint16_le(s, data_len);
+ in_uint8s(s, 2);
}
else
{
- in_uint32_le(s, data_len);
+ in_uint8s(s, 4);
}
bytes_in_stream = stream_length_after_p(s);