From 512c4f9b6bb46b4c39963b0ad61e2c243f41ef66 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Fri, 23 Dec 2016 19:04:50 +0100 Subject: [PATCH] Return an EXIT_SUCCESS value at the end of main(). Otherwise, a calling program might think it failed. Source: http://stackoverflow.com/a/3728153 --- run_hmm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run_hmm.c b/run_hmm.c index 4b2b7d2..0b1f983 100644 --- a/run_hmm.c +++ b/run_hmm.c @@ -416,6 +416,8 @@ int main (int argc, char **argv) { destroySemaphores(); printf("Run finished with %d threads.\n", threadnum); + + return EXIT_SUCCESS; } int read_seq_into_buffer(FASTAFILE* ffp, thread_data* thread_data, unsigned int buf) {