tree-wide: sort includes

Sort the includes accoding to the new coding style.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-11-16 22:09:36 +01:00
parent ab5dfda78f
commit cf0fbc49e6
205 changed files with 345 additions and 363 deletions
+2 -2
View File
@@ -19,10 +19,10 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "virt.h"
#include "architecture.h"
#include "util.h"
#include "log.h"
#include "util.h"
#include "virt.h"
int main(int argc, char *argv[]) {
int a, v;
+3 -3
View File
@@ -20,11 +20,11 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "util.h"
#include "log.h"
#include "acpi-fpdt.h"
#include "boot-timestamps.h"
#include "efivars.h"
#include "acpi-fpdt.h"
#include "log.h"
#include "util.h"
static int test_acpi_fpdt(void) {
usec_t loader_start;
+2 -2
View File
@@ -21,10 +21,10 @@
#include <stdio.h>
#include "manager.h"
#include "unit.h"
#include "macro.h"
#include "manager.h"
#include "test-helper.h"
#include "unit.h"
static int test_cgroup_mask(void) {
Manager *m = NULL;
+2 -2
View File
@@ -19,12 +19,12 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "manager.h"
#include "bus-util.h"
#include "manager.h"
int main(int argc, char *argv[]) {
_cleanup_bus_error_free_ sd_bus_error err = SD_BUS_ERROR_NULL;
+1 -1
View File
@@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdio.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include "alloc-util.h"
+1 -1
View File
@@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "log.h"
#include "firewall-util.h"
#include "log.h"
#define MAKE_IN_ADDR_UNION(a,b,c,d) (union in_addr_union) { .in.s_addr = htobe32((uint32_t) (a) << 24 | (uint32_t) (b) << 16 | (uint32_t) (c) << 8 | (uint32_t) (d))}
+1 -1
View File
@@ -17,8 +17,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "util.h"
#include "hashmap.h"
#include "util.h"
void test_hashmap_funcs(void);
void test_ordered_hashmap_funcs(void);
+1 -1
View File
@@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <string.h>
#include <stdio.h>
#include <string.h>
#include "install.h"
+1 -1
View File
@@ -22,8 +22,8 @@
#include <stdio.h>
#include "job.h"
#include "unit.h"
#include "service.h"
#include "unit.h"
int main(int argc, char*argv[]) {
JobType a, b, c, ab, bc, ab_c, bc_a, a_bc;
-1
View File
@@ -24,7 +24,6 @@
#include <unistd.h>
#include "libudev.h"
#include "string-util.h"
#include "udev-util.h"
#include "util.h"
+1 -1
View File
@@ -19,8 +19,8 @@
#include "locale-util.h"
#include "strv.h"
#include "macro.h"
#include "strv.h"
static void test_get_locales(void) {
_cleanup_strv_free_ char **locales = NULL;
+1 -1
View File
@@ -22,9 +22,9 @@
#include <stddef.h>
#include <unistd.h>
#include "formats-util.h"
#include "log.h"
#include "util.h"
#include "formats-util.h"
int main(int argc, char* argv[]) {
+2 -2
View File
@@ -19,11 +19,11 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <string.h>
#include <stdio.h>
#include <string.h>
#include "loopback-setup.h"
#include "log.h"
#include "loopback-setup.h"
int main(int argc, char* argv[]) {
int r;
+1 -1
View File
@@ -22,8 +22,8 @@
#include <stdlib.h>
#include <unistd.h>
#include "namespace.h"
#include "log.h"
#include "namespace.h"
int main(int argc, char *argv[]) {
const char * const writable[] = {
+1 -1
View File
@@ -19,9 +19,9 @@
#include <unistd.h>
#include "macro.h"
#include "ratelimit.h"
#include "time-util.h"
#include "macro.h"
static void test_ratelimit_test(void) {
int i;
+1 -1
View File
@@ -21,8 +21,8 @@
#include <sched.h>
#include "manager.h"
#include "macro.h"
#include "manager.h"
int main(int argc, char *argv[]) {
Manager *m = NULL;
+1 -1
View File
@@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "util.h"
#include "siphash24.h"
#include "util.h"
#define ITERATIONS 10000000ULL
+1 -1
View File
@@ -21,10 +21,10 @@
#include <stdio.h>
#include "util.h"
#include "log.h"
#include "sleep-config.h"
#include "strv.h"
#include "util.h"
static void test_sleep(void) {
_cleanup_strv_free_ char
+2 -3
View File
@@ -36,6 +36,7 @@
#include "logs-show.h"
#include "mount.h"
#include "path.h"
#include "rlimit-util.h"
#include "scope.h"
#include "service.h"
#include "slice.h"
@@ -43,13 +44,11 @@
#include "socket.h"
#include "swap.h"
#include "target.h"
#include "test-tables.h"
#include "timer.h"
#include "unit-name.h"
#include "unit.h"
#include "util.h"
#include "rlimit-util.h"
#include "test-tables.h"
int main(int argc, char **argv) {
test_table(architecture, ARCHITECTURE);
+1 -1
View File
@@ -18,8 +18,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdio.h>
#include <stdbool.h>
#include <stdio.h>
#include "fd-util.h"
#include "fileio.h"
+1 -1
View File
@@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "time-util.h"
#include "strv.h"
#include "time-util.h"
static void test_parse_sec(void) {
usec_t u;
+1 -1
View File
@@ -17,8 +17,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "unaligned.h"
#include "sparse-endian.h"
#include "unaligned.h"
#include "util.h"
static uint8_t data[] = {
+1 -1
View File
@@ -20,9 +20,9 @@
***/
#include "alloc-util.h"
#include "string-util.h"
#include "utf8.h"
#include "util.h"
#include "string-util.h"
static void test_utf8_is_printable(void) {
assert_se(utf8_is_printable("ascii is valid\tunicode", 22));
+1 -1
View File
@@ -21,8 +21,8 @@
#include <unistd.h>
#include "watchdog.h"
#include "log.h"
#include "watchdog.h"
int main(int argc, char *argv[]) {
usec_t t = 10 * USEC_PER_SEC;