debian/rules: Use `git' potty wrapper.
[qmail] / hostname.c
CommitLineData
2117e02e
MW
1#include "substdio.h"
2#include "subfd.h"
3#include "readwrite.h"
4#include "exit.h"
5
6char host[256];
7
8void main()
9{
10 host[0] = 0; /* sigh */
11 gethostname(host,sizeof(host));
12 host[sizeof(host) - 1] = 0;
13 substdio_puts(subfdoutsmall,host);
14 substdio_puts(subfdoutsmall,"\n");
15 substdio_flush(subfdoutsmall);
16 _exit(0);
17}