diff options
Diffstat (limited to 'src/hostname.c')
-rw-r--r-- | src/hostname.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hostname.c b/src/hostname.c index 6a55309..2794102 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -1,4 +1,5 @@ #include <unistd.h> + #include "buffer.h" #include "exit.h" @@ -7,10 +8,10 @@ char host[256]; int main() { host[0] = 0; /* sigh */ - gethostname(host,sizeof(host)); + gethostname(host, sizeof(host)); host[sizeof(host) - 1] = 0; - buffer_puts(buffer_1small,host); - buffer_puts(buffer_1small,"\n"); + buffer_puts(buffer_1small, host); + buffer_puts(buffer_1small, "\n"); buffer_flush(buffer_1small); _exit(0); } |