cmds: fix includes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2021-09-27 12:09:17 +02:00
parent 98775a4cc9
commit afdad1798e
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
4 changed files with 9 additions and 17 deletions

View File

@ -1,8 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include "config.h"
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
@ -20,7 +19,6 @@
#include "version.h"
#include "compiler.h"
#include "config.h"
#include "initutils.h"
#include "memory_utils.h"
#include "parse.h"

View File

@ -1,8 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include "config.h"
#include <errno.h>
#include <fcntl.h>
#include <net/if.h>
@ -24,7 +23,6 @@
#include "lxc.h"
#include "af_unix.h"
#include "config.h"
#include "log.h"
#include "mainloop.h"
#include "monitor.h"

View File

@ -1,8 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include "config.h"
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
@ -30,7 +29,6 @@
#include <unistd.h>
#include "compiler.h"
#include "config.h"
#include "file_utils.h"
#include "log.h"
#include "memory_utils.h"
@ -42,7 +40,7 @@
#include "syscall_wrappers.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@ -1,8 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include "config.h"
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
@ -22,7 +21,6 @@
#include "compiler.h"
#include "conf.h"
#include "config.h"
#include "hlist.h"
#include "list.h"
#include "log.h"