aboutsummaryrefslogtreecommitdiff
path: root/src/cmocka.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-09-21 11:21:28 +0200
committerAndreas Schneider <asn@cryptomilk.org>2016-09-21 11:21:28 +0200
commit4d7c402482cf2b205ea94b73c6b3206d8964272e (patch)
tree08678df06568baca1dc4cc451ee2803e9edc4511 /src/cmocka.c
parentd821fccad2cb0a0e0fc0de41fce6a2ee23df5367 (diff)
downloadcmocka-4d7c402482cf2b205ea94b73c6b3206d8964272e.tar.gz
cmocka-4d7c402482cf2b205ea94b73c6b3206d8964272e.tar.xz
cmocka-4d7c402482cf2b205ea94b73c6b3206d8964272e.zip
cmocka: Use defines for WILL_RETURN values
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/cmocka.c')
-rw-r--r--src/cmocka.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 9300f04..829dd7a 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -691,7 +691,7 @@ static int get_symbol_value(
return_value = value_node->refcount;
if (value_node->refcount - 1 == 0) {
list_remove_free(value_node, NULL, NULL);
- } else if (value_node->refcount > -2) {
+ } else if (value_node->refcount > WILL_RETURN_ONCE) {
--value_node->refcount;
}
} else {