summaryrefslogtreecommitdiff
path: root/src/hostname.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
commita6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (patch)
treeb88cc7a8457658d67e0321718556ac807f6bccf3 /src/hostname.c
parent00be7622c428f279872f84569f098ce16150f8a8 (diff)
format files
Diffstat (limited to 'src/hostname.c')
-rw-r--r--src/hostname.c7
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);
}