diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-07 11:01:21 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-07 11:01:21 +1300 |
commit | 702713622414ea2ffdc6909d9fe396b4dbb2eeec (patch) | |
tree | c09390d54455eded8dcd14064b7a2e962d759877 | |
parent | Switching to clang (diff) | |
download | spsh-702713622414ea2ffdc6909d9fe396b4dbb2eeec.tar.gz spsh-702713622414ea2ffdc6909d9fe396b4dbb2eeec.zip |
Explicitly specify void-arg funcs
-rw-r--r-- | banner.c | 2 | ||||
-rw-r--r-- | loop.c | 2 | ||||
-rw-r--r-- | main.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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; @@ -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 */ @@ -1,7 +1,7 @@ #include "spsh.h" /* Entry function */ -int main() { +int main(void) { /* Show the banner with the warning */ banner(); |