From 4867ff3468bbc9bf95f2947a81c04fa805d86f11 Mon Sep 17 00:00:00 2001 From: Tom MTT Date: Mon, 28 Nov 2022 20:36:41 +0100 Subject: [PATCH] chore: update headers --- feuille.c | 9 +++++---- server.c | 28 +++++++++++++--------------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/feuille.c b/feuille.c index f5d6298..a3064b9 100644 --- a/feuille.c +++ b/feuille.c @@ -15,18 +15,19 @@ #include "feuille.h" -#include /* for errno, ERANGE, EFBIG, ENOENT */ +#include /* for errno, ERANGE, EAGAIN, EFBIG, ENOENT */ #include /* for USHRT_MAX, ULONG_MAX, CHAR_MAX, PATH_MAX, UCHA... */ #include /* for NULL, setlocale, LC_ALL */ #include /* for getpwnam, passwd */ -#include /* for freopen, puts, stderr, stdin, stdout */ -#include /* for strtoll, exit, free, realpath, srand */ +#include /* for signal, SIGPIPE, SIG_IGN */ +#include /* for puts */ +#include /* for strtoll, free, realpath, srand */ #include /* for strerror, strlen */ #include /* for mkdir */ #include /* for wait */ #include /* for syslog, openlog, LOG_WARNING, LOG_NDELAY, LOG_... */ #include /* for time */ -#include /* for fork, access, chdir, chown, chroot, close, getpid */ +#include /* for getuid, access, chdir, chown, chroot, close */ #include "arg.h" /* for EARGF, ARGBEGIN, ARGEND */ #include "bin.h" /* for create_url, generate_id, write_paste */ diff --git a/server.c b/server.c index 429ff8b..1e3b8f4 100644 --- a/server.c +++ b/server.c @@ -13,21 +13,19 @@ #include "server.h" -#include /* for inet_pton */ -#include /* for errno, EFBIG, ENOENT */ -#include /* for sockaddr_in, sockaddr_in6, htons */ -#include /* for puts */ -#include /* for free, NULL, malloc, realloc */ -#include /* for strcmp, strlen */ -#include /* for bzero */ -#include /* for syslog, LOG_WARNING */ -#include /* for setsockopt, bind, socket, AF_INET */ -#include /* for timeval */ -#include /* for close */ - -#include "feuille.h" /* for Settings, settings */ -#include "util.h" /* for verbose */ - +#include /* for inet_pton */ +#include /* for errno, EAGAIN, EFBIG, ENOENT */ +#include /* for htons, sockaddr_in, sockaddr_in6, IPPROTO_IPV6 */ +#include /* for NULL */ +#include /* for free, malloc, realloc */ +#include /* for strcmp, strlen */ +#include /* for bzero */ +#include /* for setsockopt, bind, socket, SOL_SOCKET, AF_INET */ +#include /* for timeval */ +#include /* for close */ + +#include "feuille.h" /* for Settings, settings */ +#include "util.h" /* for verbose */ /** * Initialize the server socket. * -> the actual socket.