summaryrefslogtreecommitdiff
path: root/usr.bin/fetch/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/fetch/fetch.c')
-rw-r--r--usr.bin/fetch/fetch.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 98b2d3c..42c2825 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -30,8 +30,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
-
-#define prcons(FD, STR) write((FD), (STR), strlen((STR)))
+#include <stdio.h>
#define ASCII_ART \
" ____ \n" \
@@ -39,20 +38,12 @@
" | /\\ \\ user: root\n" \
" |/ \\ \\ OS: Hyra/amd64 v"_OSVER"\n" \
" \\ R. \\ \\ arch: "_OSARCH"\n" \
- " \\ I. \\ \\\n"
+ " \\ I. \\ \\"
int
main(void)
{
- int fd;
-
- fd = open("/dev/console", O_WRONLY);
- if (fd < 0) {
- return fd;
- }
-
- prcons(fd, ASCII_ART);
- close(fd);
+ puts(ASCII_ART);
return 0;
}