diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-08-18 10:34:18 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-08-25 16:24:07 +0100 |
commit | 49c0d2e698365c4a0ece02ff1a889c7d18e629d6 (patch) | |
tree | c4514d09fa572e03f3890069df2776bff037e730 /server/red_channel.c | |
parent | 66a4af75e3ecc705da8930e548a8cae6fbbd348e (diff) | |
download | spice-49c0d2e698365c4a0ece02ff1a889c7d18e629d6.tar.gz spice-49c0d2e698365c4a0ece02ff1a889c7d18e629d6.tar.xz spice-49c0d2e698365c4a0ece02ff1a889c7d18e629d6.zip |
Use MAX macro to compute the maximum value
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/red_channel.c')
-rw-r--r-- | server/red_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index f7aa3f74..3f40fab0 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -2291,7 +2291,7 @@ uint32_t red_channel_max_pipe_size(RedChannel *channel) RING_FOREACH(link, &channel->clients) { rcc = SPICE_CONTAINEROF(link, RedChannelClient, channel_link); - pipe_size = pipe_size > rcc->pipe_size ? pipe_size : rcc->pipe_size; + pipe_size = MAX(pipe_size, rcc->pipe_size); } return pipe_size; } |