summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2015-06-10 10:45:25 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-06-11 16:54:41 +0200
commit6ec714e855bddb3a68cb172d52bbd8e8eecf64fa (patch)
tree968a34d4bb2a59f65d870e6c676b5b6875d202f8
parent7a081a7ced8e81eb06698e9fa2f32d35717b5f33 (diff)
Use MIN macro to compute a minimum
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--server/red_channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index 6dc9bf18..946b5938 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -2309,7 +2309,7 @@ uint32_t red_channel_min_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 = MIN(pipe_size, rcc->pipe_size);
}
return pipe_size == ~0 ? 0 : pipe_size;
}