[Spice-commits] server/dcc.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Wed Jun 7 09:08:47 UTC 2017


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

New commits:
commit 385176188de91f1713303afe73f3942962b6b3ae
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Jun 6 09:37:31 2017 +0100

    dcc: Use more portable mnemonic
    
    The maximum value for a 32 bit variable is UINT32_MAX and not
    UINT_MAX. Currently all supported platforms have these two
    constants having the same value so this patch don't change
    nothing in the generated code but potentially this could
    change in a future.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/server/dcc.c b/server/dcc.c
index 4d5c8a0b..dbc496c2 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -1055,7 +1055,7 @@ static bool dcc_handle_stream_report(DisplayChannelClient *dcc,
         return TRUE;
     }
 
-    if (report->num_frames == 0 && report->num_drops == UINT_MAX) {
+    if (report->num_frames == 0 && report->num_drops == UINT32_MAX) {
         spice_warning("stream_report: the client does not support stream %u",
                       report->stream_id);
         /* Stop streaming the video so the client can see it */


More information about the Spice-commits mailing list