summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2017-08-01 14:54:51 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2017-08-01 15:53:44 +0200
commit9574246403a6a1a52d849e8333414426ba8637d9 (patch)
tree9b9f0fdaa7ddc4d59eee51c9fb6606796b3625c3
parent5684ed10be4f7596b2c6325f7a77446680804e51 (diff)
quic: Use SPICE_VERIFY for static check
DEFevol is known at compile-time, so we can use SPICE_VERIFY to check its value. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r--common/quic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/quic.c b/common/quic.c
index 049a5cd..8567368 100644
--- a/common/quic.c
+++ b/common/quic.c
@@ -254,7 +254,7 @@ static void set_wm_trigger(CommonState *state)
wm = 10;
}
- spice_assert(DEFevol < 6);
+ SPICE_VERIFY(DEFevol < 6);
state->wm_trigger = besttrigtab[DEFevol / 2][wm];