[Spice-commits] server/dcc-send.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 24 08:42:26 UTC 2019


 server/dcc-send.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 11b0a58bbf53cad343f5f5047ebc73c4ee64adc9
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Jun 21 10:44:18 2019 +0100

    dcc-send: Check some constants at compile time
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Uri Lublin <uril at redhat.com>

diff --git a/server/dcc-send.c b/server/dcc-send.c
index ea2128e2..b14619a2 100644
--- a/server/dcc-send.c
+++ b/server/dcc-send.c
@@ -1834,7 +1834,7 @@ static void display_channel_marshall_migrate_data(RedChannelClient *rcc,
     spice_marshaller_add_uint32(base_marshaller, SPICE_MIGRATE_DATA_DISPLAY_VERSION);
 
     spice_assert(dcc->priv->pixmap_cache);
-    spice_assert(MIGRATE_DATA_DISPLAY_MAX_CACHE_CLIENTS == 4 &&
+    SPICE_VERIFY(MIGRATE_DATA_DISPLAY_MAX_CACHE_CLIENTS == 4 &&
                  MIGRATE_DATA_DISPLAY_MAX_CACHE_CLIENTS == MAX_CACHE_CLIENTS);
 
     display_data.message_serial = red_channel_client_get_message_serial(rcc);


More information about the Spice-commits mailing list