aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--banner.c8
-rw-r--r--spsh.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/banner.c b/banner.c
index 6a33008..f774fe5 100644
--- a/banner.c
+++ b/banner.c
@@ -1,8 +1,8 @@
#include "spsh.h"
/* Print the welcome and warning banners */
-void banner(void) {
- fprintf(stdout, "%s\n", WELCOME);
- fprintf(stdout, "%s\n", WARNING);
- return;
+int banner(void) {
+ int bw;
+ bw = fprintf(stdout, "%s\n%s\n", WELCOME, WARNING);
+ return (bw > 0);
}
diff --git a/spsh.h b/spsh.h
index b3c1676..8ee09ea 100644
--- a/spsh.h
+++ b/spsh.h
@@ -28,7 +28,7 @@
extern char **environ;
/* Function prototypes to soothe separate files */
-void banner(void);
+int banner(void);
void loop(void);
void cmd(char *line);