diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-09-03 12:06:01 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-09-03 12:06:01 -0400 |
commit | a2ff25b2a5c1e52ff58ed7d0ed7e7d453cc7313e (patch) | |
tree | 55e9cf26c657b9efb5a190a4e71886bdedc03a54 /bin | |
parent | 56669a18161ae80146bc5aac3c1e1bb7422c2728 (diff) |
nshd-tester: clean up the #include list
It was missing <string.h>, and had an unnecessary <sys/stat.h>.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/nshd-tester.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/nshd-tester.c b/bin/nshd-tester.c index cddf9ff..358b968 100644 --- a/bin/nshd-tester.c +++ b/bin/nshd-tester.c @@ -15,18 +15,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301 USA */ -#define _GNU_SOURCE -#include <stdio.h> -#include <stdlib.h> -#include <sys/socket.h> -#include <sys/un.h> -#include <error.h> -#include <errno.h> -#include <stdarg.h> -#include <signal.h> -#include <unistd.h> -#include <sys/stat.h> -#include <sys/wait.h> +#define _GNU_SOURCE /* for vasprintf(3), strdupa(3) */ +#include <errno.h> /* for errno */ +#include <error.h> /* for error(3) */ +#include <signal.h> /* for struct sigaction, SA_RESTART, sigemptyset(3), sigaction(3) */ +#include <stdarg.h> /* for va_list, va_start(3), va_end(3) */ +#include <stdio.h> /* for printf(3), vasprintf(3) */ +#include <stdlib.h> /* for getenv(3), setenv(3), free(3), exit(3), atexit(3), abort(), EXIT_FAILURE */ +#include <string.h> /* for strcpy(3), strdupa(3) */ +#include <sys/socket.h> /* for struct sockaddr, AF_UNIX, SOCK_{STREAM,SEQPACKET,DGRAM}, socket(3), bind(3), listen(3), recvfrom(3) */ +#include <sys/un.h> /* for struct sockaddr_un */ +#include <sys/wait.h> /* for waitpid(3), WNOHANG, WEXITSTATUS() */ +#include <unistd.h> /* for unlink(3), fork(3), close(3), dup2(3), getpid(3), execv(3), write(3) */ #define _(s) s |