summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-29 16:50:34 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-29 17:12:21 +0530
commit3b4bcede398591bc2fdb9836e5e21a7f1913191d (patch)
treeeea33b17dbe32a339f17caf9dc8e6d0dafafad25
parentc5adc83694838ecd0a042263949a9d5e950f5878 (diff)
c: clean up
-rw-r--r--src/evanix.c8
-rw-r--r--src/jobs.c3
2 files changed, 6 insertions, 5 deletions
diff --git a/src/evanix.c b/src/evanix.c
index 6986444..92f9596 100644
--- a/src/evanix.c
+++ b/src/evanix.c
@@ -26,7 +26,8 @@ static const char usage[] =
" -p, --pipelined <bool> Use evanix build pipeline.\n"
" -l, --check_cache-status <bool> Perform cache locality check.\n"
" -c, --close-unused-fd <bool> Close stderr on exec.\n"
- " -e, --statistics <path> Path to time statistics database.\n"
+ " -e, --statistics <path> Path to time statistics "
+ "database.\n"
" -k, --solver sjf|conformity|highs Solver to use.\n"
"\n";
@@ -325,8 +326,9 @@ static int opts_read(struct evanix_opts_t *opts, char **expr, int argc,
ret = -EINVAL;
goto out_free_evanix;
} else if (opts->max_time && !opts->statistics.db) {
- fprintf(stderr, "evanix: option --max-time implies --statistics\n"
- "Try 'evanix --help' for more information.\n");
+ fprintf(stderr,
+ "evanix: option --max-time implies --statistics\n"
+ "Try 'evanix --help' for more information.\n");
ret = -EINVAL;
goto out_free_evanix;
}
diff --git a/src/jobs.c b/src/jobs.c
index 8f4efb1..8410522 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -1,9 +1,9 @@
#include <errno.h>
+#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <regex.h>
#include <cjson/cJSON.h>
#include <sqlite3.h>
@@ -552,7 +552,6 @@ int job_read(FILE *stream, struct job **job)
ret = JOB_READ_SUCCESS;
}
-
out_free:
cJSON_Delete(root);
if (ret != JOB_READ_SUCCESS)