summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-07-08 00:41:28 +0000
committerPavel Roskin <plroskin@gmail.com>2016-07-08 04:29:52 +0000
commit7cd9a5c4afce79ee10119bc5545c693290671bcb (patch)
treea364540a8a3629e5594f3fbd2c10ae5074445a46
parentc5ca0332be2e552950d7b45e51faf53f6a012345 (diff)
downloadxrdp-proprietary-7cd9a5c4afce79ee10119bc5545c693290671bcb.tar.gz
xrdp-proprietary-7cd9a5c4afce79ee10119bc5545c693290671bcb.zip
Cast fifo_remove_item() to XRDP_ENC_DATA* or XRDP_ENC_DATA_DONE* as needed
-rw-r--r--xrdp/xrdp_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xrdp/xrdp_encoder.c b/xrdp/xrdp_encoder.c
index 18aa6a15..ff6db7b7 100644
--- a/xrdp/xrdp_encoder.c
+++ b/xrdp/xrdp_encoder.c
@@ -167,7 +167,7 @@ xrdp_encoder_delete(struct xrdp_encoder *self)
{
while (!fifo_is_empty(fifo))
{
- enc = fifo_remove_item(fifo);
+ enc = (XRDP_ENC_DATA *) fifo_remove_item(fifo);
if (enc == 0)
{
continue;
@@ -185,7 +185,7 @@ xrdp_encoder_delete(struct xrdp_encoder *self)
{
while (!fifo_is_empty(fifo))
{
- enc_done = fifo_remove_item(fifo);
+ enc_done = (XRDP_ENC_DATA_DONE *) fifo_remove_item(fifo);
if (enc_done == 0)
{
continue;