[Spice-devel] [PATCH 14/18] worker:fix constant

Frediano Ziglio fziglio at redhat.com
Mon Nov 23 09:02:00 PST 2015


Use mnemonic instead of constant to return enumeration value

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/red_worker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 9ac7e29..becd42f 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1492,7 +1492,7 @@ static FillBitsType fill_bits(DisplayChannelClient *dcc, SpiceMarshaller *m,
         spice_error("invalid image type %u", image.descriptor.type);
     }
     pthread_mutex_unlock(&dcc->pixmap_cache->lock);
-    return 0;
+    return FILL_BITS_TYPE_INVALID;
 }
 
 static void fill_mask(RedChannelClient *rcc, SpiceMarshaller *m,
-- 
2.4.3



More information about the Spice-devel mailing list