From 530cd2893e020206262a146d567c707ef93baf31 Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Tue, 22 Oct 2013 19:08:43 +0100 Subject: [PATCH] tree-test: Don't return restricted exit codes Signed-off-by: Derek Buitenhuis --- libavutil/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/tree.c b/libavutil/tree.c index b419e16ca0..d48d01af5b 100644 --- a/libavutil/tree.c +++ b/libavutil/tree.c @@ -230,14 +230,14 @@ int main(void) if (check(root) > 999) { av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i); print(root, 0); - return -1; + return 1; } if (!node) node = av_tree_node_alloc(); if (!node) { av_log(NULL, AV_LOG_ERROR, "Memory allocation failure.\n"); - return AVERROR(ENOMEM); + return 1; } av_tree_insert(&root, jj, cmp, &node);