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 "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 <limits.h> /* for USHRT_MAX, ULONG_MAX, CHAR_MAX, PATH_MAX, UCHA... */
#include <locale.h> /* for NULL, setlocale, LC_ALL */ #include <locale.h> /* for NULL, setlocale, LC_ALL */
#include <pwd.h> /* for getpwnam, passwd */ #include <pwd.h> /* for getpwnam, passwd */
#include <stdio.h> /* for freopen, puts, stderr, stdin, stdout */ #include <signal.h> /* for signal, SIGPIPE, SIG_IGN */
#include <stdlib.h> /* for strtoll, exit, free, realpath, srand */ #include <stdio.h> /* for puts */
#include <stdlib.h> /* for strtoll, free, realpath, srand */
#include <string.h> /* for strerror, strlen */ #include <string.h> /* for strerror, strlen */
#include <sys/stat.h> /* for mkdir */ #include <sys/stat.h> /* for mkdir */
#include <sys/wait.h> /* for wait */ #include <sys/wait.h> /* for wait */
#include <syslog.h> /* for syslog, openlog, LOG_WARNING, LOG_NDELAY, LOG_... */ #include <syslog.h> /* for syslog, openlog, LOG_WARNING, LOG_NDELAY, LOG_... */
#include <time.h> /* for time */ #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 "arg.h" /* for EARGF, ARGBEGIN, ARGEND */
#include "bin.h" /* for create_url, generate_id, write_paste */ #include "bin.h" /* for create_url, generate_id, write_paste */

View file

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