summaryrefslogtreecommitdiff
path: root/usr.sbin/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/init/main.c')
-rw-r--r--usr.sbin/init/main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c
index 220d819..754b98e 100644
--- a/usr.sbin/init/main.c
+++ b/usr.sbin/init/main.c
@@ -27,18 +27,16 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <string.h>
-#include <unistd.h>
+#include <stdio.h>
#define VERSION "v0.0.1"
static void
loginfo(const char *s)
{
- const char *tmp = "init [*]: ";
-
- write(STDOUT_FILENO, tmp, strlen(tmp));
- write(STDOUT_FILENO, s, strlen(s));
+ fputs("init [*]: ", stdout);
+ fputs(s, stdout);
+ fflush(stdout);
}
int