[Spice-devel] [PATCH spice-server] dcc: Use more portable mnemonic
Frediano Ziglio
fziglio at redhat.com
Tue Jun 6 08:40:31 UTC 2017
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>
---
server/dcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/dcc.c b/server/dcc.c
index 4d5c8a0..dbc496c 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 */
--
2.9.4
More information about the Spice-devel
mailing list