aboutsummaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-07-22 21:08:09 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-07-22 21:57:39 +0200
commit1de8b89807222b5673505fea2bec1af4c0af8c7d (patch)
treef0b7a5e08013114a5b3f927d93caa8f674775fa9 /src/cli
parente4cff606fccdb7b8ac1c9bf5204a6b52e296bfe9 (diff)
downloadOFQT-1de8b89807222b5673505fea2bec1af4c0af8c7d.tar.gz
OFQT-1de8b89807222b5673505fea2bec1af4c0af8c7d.zip
Correct function prototypes,add more Cflags for sanity,add sanity assets
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/main.c2
-rw-r--r--src/cli/updater.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/cli/main.c b/src/cli/main.c
index 7971c7d..c27f6fc 100644
--- a/src/cli/main.c
+++ b/src/cli/main.c
@@ -5,7 +5,7 @@
#include "net.h"
#include "commands.h"
-static void help()
+static void help(void)
{
fprintf(stderr, "OFCL <command>\n"); \
diff --git a/src/cli/updater.c b/src/cli/updater.c
index 68757c5..9dcd9da 100644
--- a/src/cli/updater.c
+++ b/src/cli/updater.c
@@ -143,6 +143,10 @@ void update_setup(char* of_dir, char* remote, int local_rev, int remote_rev)
free(buf);
}
break;
+
+ default:
+ assert(0);
+ break;
}
}