chore: update headers

This commit is contained in:
Tom MTT. 2022-11-28 20:36:41 +01:00
parent 7c796a567f
commit 4867ff3468
2 changed files with 17 additions and 18 deletions

View file

@ -15,18 +15,19 @@
#include "feuille.h"
#include <errno.h> /* for errno, ERANGE, EFBIG, ENOENT */
#include <errno.h> /* for errno, ERANGE, EAGAIN, EFBIG, ENOENT */
#include <limits.h> /* for USHRT_MAX, ULONG_MAX, CHAR_MAX, PATH_MAX, UCHA... */
#include <locale.h> /* for NULL, setlocale, LC_ALL */
#include <pwd.h> /* for getpwnam, passwd */
#include <stdio.h> /* for freopen, puts, stderr, stdin, stdout */
#include <stdlib.h> /* for strtoll, exit, free, realpath, srand */
#include <signal.h> /* for signal, SIGPIPE, SIG_IGN */
#include <stdio.h> /* for puts */
#include <stdlib.h> /* for strtoll, free, realpath, srand */
#include <string.h> /* for strerror, strlen */
#include <sys/stat.h> /* for mkdir */
#include <sys/wait.h> /* for wait */
#include <syslog.h> /* for syslog, openlog, LOG_WARNING, LOG_NDELAY, LOG_... */
#include <time.h> /* for time */
#include <unistd.h> /* for fork, access, chdir, chown, chroot, close, getpid */
#include <unistd.h> /* for getuid, access, chdir, chown, chroot, close */
#include "arg.h" /* for EARGF, ARGBEGIN, ARGEND */
#include "bin.h" /* for create_url, generate_id, write_paste */

View file

@ -13,21 +13,19 @@
#include "server.h"
#include <arpa/inet.h> /* for inet_pton */
#include <errno.h> /* for errno, EFBIG, ENOENT */
#include <netinet/in.h> /* for sockaddr_in, sockaddr_in6, htons */
#include <stdio.h> /* for puts */
#include <stdlib.h> /* for free, NULL, malloc, realloc */
#include <string.h> /* for strcmp, strlen */
#include <strings.h> /* for bzero */
#include <syslog.h> /* for syslog, LOG_WARNING */
#include <sys/socket.h> /* for setsockopt, bind, socket, AF_INET */
#include <sys/time.h> /* for timeval */
#include <unistd.h> /* for close */
#include "feuille.h" /* for Settings, settings */
#include "util.h" /* for verbose */
#include <arpa/inet.h> /* for inet_pton */
#include <errno.h> /* for errno, EAGAIN, EFBIG, ENOENT */
#include <netinet/in.h> /* for htons, sockaddr_in, sockaddr_in6, IPPROTO_IPV6 */
#include <stdio.h> /* for NULL */
#include <stdlib.h> /* for free, malloc, realloc */
#include <string.h> /* for strcmp, strlen */
#include <strings.h> /* for bzero */
#include <sys/socket.h> /* for setsockopt, bind, socket, SOL_SOCKET, AF_INET */
#include <sys/time.h> /* for timeval */
#include <unistd.h> /* for close */
#include "feuille.h" /* for Settings, settings */
#include "util.h" /* for verbose */
/**
* Initialize the server socket.
* -> the actual socket.