From 257e64c12df95f199fb5f8e7195c6a19efaba7ca Mon Sep 17 00:00:00 2001 From: Tuukka Tikkanen Date: Wed, 10 Dec 2014 15:51:01 +0200 Subject: 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 --- idlestat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'idlestat.c') 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); -- cgit v1.2.3