Use mnemonic instead of constant to return enumeration value

Signed-off-by: Frediano Ziglio <[email protected]>
---
 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

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to