aboutsummaryrefslogtreecommitdiff
path: root/idlestat.c
diff options
context:
space:
mode:
authorTuukka Tikkanen <tuukka.tikkanen@linaro.org>2014-12-10 15:51:01 +0200
committerTuukka Tikkanen <tuukka.tikkanen@linaro.org>2014-12-11 08:09:18 +0200
commit257e64c12df95f199fb5f8e7195c6a19efaba7ca (patch)
tree7ffc1f55f764005efdd08b0b7225deb73daa672c /idlestat.c
parente4481b5ef93bae9b3a93e6bc92adb26217c6e53e (diff)
idlestat: Do not return negative value from main
Return values from programs are unsigned. Replace return -1 with return 1 in main(). Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Diffstat (limited to 'idlestat.c')
-rw-r--r--idlestat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/idlestat.c b/idlestat.c
index 0457c9a..c9a0ef2 100644
--- a/idlestat.c
+++ b/idlestat.c
@@ -1749,7 +1749,7 @@ int main(int argc, char *argv[], char *const envp[])
*/
if (0 == establish_idledata_to_topo(datas)) {
if (output_handler->open_report_file(options.outfilename, options.report_data))
- return -1;
+ return 1;
if (options.display & IDLE_DISPLAY) {
output_handler->cstate_table_header(options.report_data);