lkml.org 
[lkml]   [2021]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 1/3] libperf: Prefer exit(EXIT_SUCCESS) over exit(0)
From
Change exit code to be more intention revealing.

Signed-off-by: Ian Rogers <irogers@google.com>
---
tools/lib/perf/tests/test-evlist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/perf/tests/test-evlist.c b/tools/lib/perf/tests/test-evlist.c
index c67c83399170..eceacd4b014c 100644
--- a/tools/lib/perf/tests/test-evlist.c
+++ b/tools/lib/perf/tests/test-evlist.c
@@ -251,7 +251,7 @@ static int test_mmap_thread(void)
for (i = 0; i < 100; i++)
prctl(0, 0, 0, 0, 0);

- exit(0);
+ exit(EXIT_SUCCESS);
}

threads = perf_thread_map__new_dummy();
--
2.32.0.432.gabb21c7263-goog
\
 
 \ /
  Last update: 2021-07-29 08:25    [W:0.055 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site