aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-07 11:01:21 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-07 11:01:21 +1300
commit702713622414ea2ffdc6909d9fe396b4dbb2eeec (patch)
treec09390d54455eded8dcd14064b7a2e962d759877
parentSwitching to clang (diff)
downloadspsh-702713622414ea2ffdc6909d9fe396b4dbb2eeec.tar.gz
spsh-702713622414ea2ffdc6909d9fe396b4dbb2eeec.zip
Explicitly specify void-arg funcs
-rw-r--r--banner.c2
-rw-r--r--loop.c2
-rw-r--r--main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/banner.c b/banner.c
index ae23904..6a33008 100644
--- a/banner.c
+++ b/banner.c
@@ -1,7 +1,7 @@
#include "spsh.h"
/* Print the welcome and warning banners */
-void banner() {
+void banner(void) {
fprintf(stdout, "%s\n", WELCOME);
fprintf(stdout, "%s\n", WARNING);
return;
diff --git a/loop.c b/loop.c
index bf0918c..0f69083 100644
--- a/loop.c
+++ b/loop.c
@@ -1,7 +1,7 @@
#include "spsh.h"
/* Loop through reading commands until we see an EOF (^D) */
-void loop() {
+void loop(void) {
char *line;
/* Loop until we break */
diff --git a/main.c b/main.c
index 55b8b00..d50ca46 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,7 @@
#include "spsh.h"
/* Entry function */
-int main() {
+int main(void) {
/* Show the banner with the warning */
banner();