tree-wide: Sort includes

This was done by running a locally built clang-format with
https://github.com/llvm/llvm-project/pull/137617 and
https://github.com/llvm/llvm-project/pull/137840 applied on all .c
and .h files.
This commit is contained in:
Daan De Meyer
2025-04-30 09:30:51 +02:00
parent b773143708
commit 1cf40697e3
445 changed files with 596 additions and 668 deletions
+1 -1
View File
@@ -1,9 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "user-record.h"
#include "group-record.h"
#include "nspawn-mount.h"
#include "user-record.h"
typedef struct BindUserData {
/* The host's user/group records */
+1 -1
View File
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <sys/mount.h>
#include <linux/magic.h>
#include <sys/mount.h>
#include "alloc-util.h"
#include "chase.h"
+1 -2
View File
@@ -1,10 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/* Make sure the net/if.h header is included before any linux/ one */
#include <net/if.h>
#include <linux/if.h>
#include <linux/nl80211.h>
#include <linux/veth.h>
#include <net/if.h>
#include <sys/file.h>
#include <sys/mount.h>
+1 -1
View File
@@ -1,9 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <sys/ioctl.h>
#include <sys/prctl.h>
#include <sys/reboot.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <unistd.h>
#include "argv-util.h"
+3 -4
View File
@@ -2,6 +2,7 @@
#include <errno.h>
#include <getopt.h>
#include <linux/fs.h>
#include <linux/fuse.h>
#include <linux/loop.h>
#include <stdlib.h>
@@ -15,14 +16,11 @@
#include <termios.h>
#include <unistd.h>
#include <linux/fs.h> /* Must be included after <sys/mount.h> */
#include "sd-bus.h"
#include "sd-daemon.h"
#include "sd-id128.h"
#include "alloc-util.h"
#include "ether-addr-util.h"
#include "barrier.h"
#include "base-filesystem.h"
#include "btrfs-util.h"
@@ -45,6 +43,7 @@
#include "dissect-image.h"
#include "env-util.h"
#include "escape.h"
#include "ether-addr-util.h"
#include "fd-util.h"
#include "fdset.h"
#include "fileio.h"
@@ -67,6 +66,7 @@
#include "mountpoint-util.h"
#include "namespace-util.h"
#include "notify-recv.h"
#include "nspawn.h"
#include "nspawn-bind-user.h"
#include "nspawn-cgroup.h"
#include "nspawn-expose-ports.h"
@@ -78,7 +78,6 @@
#include "nspawn-settings.h"
#include "nspawn-setuid.h"
#include "nspawn-stub-pid1.h"
#include "nspawn.h"
#include "nsresource.h"
#include "nulstr-util.h"
#include "os-util.h"