chiark / gitweb /
Add missing includes in header files
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 10 Feb 2015 11:56:53 +0000 (12:56 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 12 Feb 2015 19:44:32 +0000 (20:44 +0100)
This fixes various issues found by globally reordering the include
sections of all .c files.

16 files changed:
src/boot/boot-loader.h
src/core/cgroup.h
src/core/execute.h
src/core/path.h
src/core/unit.h
src/journal/journal-internal.h
src/libsystemd-network/dhcp-identifier.h
src/libsystemd/sd-bus/bus-bloom.h
src/libsystemd/sd-bus/bus-gvariant.h
src/libsystemd/sd-bus/bus-type.h
src/libsystemd/sd-bus/busctl-introspect.h
src/shared/btrfs-ctree.h
src/shared/clock-util.h
src/shared/env-util.h
src/shared/ptyfwd.h
src/shared/uid-range.h

index 08827c30ad21669b8e7985fb33c34f20283b900c..b3fcdeedadda5b100a93c1235fad63be023c323b 100644 (file)
@@ -21,5 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include "boot.h"
+
 int boot_loader_read_entries(struct boot_info *info);
 int boot_loader_find_active_entry(struct boot_info *info, const char *loader_active);
 int boot_loader_read_entries(struct boot_info *info);
 int boot_loader_find_active_entry(struct boot_info *info, const char *loader_active);
index 7150e5e7e26eb51b877b99ce86d6450acfc05f55..8fa851de329310557c784fd5eaf3b91004586453 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include <stdbool.h>
+
 #include "list.h"
 #include "list.h"
+#include "time-util.h"
 
 typedef struct CGroupContext CGroupContext;
 typedef struct CGroupDeviceAllow CGroupDeviceAllow;
 
 typedef struct CGroupContext CGroupContext;
 typedef struct CGroupDeviceAllow CGroupDeviceAllow;
index 153867c7b3c8fe9f7f5cebcf93873f6f5b345ceb..6e0c9faa75cb3dc2bdb225f6b4a7ab330dcf1456 100644 (file)
@@ -199,6 +199,7 @@ struct ExecContext {
 };
 
 #include "cgroup.h"
 };
 
 #include "cgroup.h"
+#include "cgroup-util.h"
 
 struct ExecParameters {
         char **argv;
 
 struct ExecParameters {
         char **argv;
index d2e91d7d71ed51f0f8b79718b034c982ff221b06..0d36aab960f694bc2717a9ae0aac791f3c52bd48 100644 (file)
@@ -22,6 +22,7 @@
 ***/
 
 typedef struct Path Path;
 ***/
 
 typedef struct Path Path;
+typedef struct PathSpec PathSpec;
 
 #include "unit.h"
 #include "mount.h"
 
 #include "unit.h"
 #include "mount.h"
index 53b8a7f66b57cfbd97175cab64a672148e2ab5f7..291bc77a7618fec7d45207195065a21970120f0a 100644 (file)
@@ -259,8 +259,8 @@ typedef enum UnitSetPropertiesMode {
 #include "automount.h"
 #include "swap.h"
 #include "timer.h"
 #include "automount.h"
 #include "swap.h"
 #include "timer.h"
-#include "path.h"
 #include "slice.h"
 #include "slice.h"
+#include "path.h"
 #include "scope.h"
 
 struct UnitVTable {
 #include "scope.h"
 
 struct UnitVTable {
index e99050cdf27a65405d3da184f4dec773de985670..b51ecdb600a5a4c39793a6dc0b47f78b8113be3c 100644 (file)
@@ -32,6 +32,7 @@
 #include "hashmap.h"
 #include "set.h"
 #include "journal-file.h"
 #include "hashmap.h"
 #include "set.h"
 #include "journal-file.h"
+#include "sd-journal.h"
 
 typedef struct Match Match;
 typedef struct Location Location;
 
 typedef struct Match Match;
 typedef struct Location Location;
index cbec03eac1d712059d46d267ed6ec5ccec5854ee..7f44d2549938592045544a916cc552c5ce1a7ab0 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <net/ethernet.h>
 
 
 #include <net/ethernet.h>
 
+#include "macro.h"
 #include "sparse-endian.h"
 #include "sd-id128.h"
 
 #include "sparse-endian.h"
 #include "sd-id128.h"
 
index 0dad5db78dd6c212ea55356ad60e76a62f29b566..96c82d7e8fc3e944399cac31e9cc8bd1583f2e0a 100644 (file)
@@ -21,6 +21,8 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include <stdbool.h>
+#include <stdint.h>
 #include <sys/types.h>
 
 /*
 #include <sys/types.h>
 
 /*
index b4bd2a50f0373f33c3cadc5124184cb6f9fc4208..fdf533591b1b141ec88dbe83f1da849fa7b439a2 100644 (file)
@@ -21,6 +21,8 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include "macro.h"
+
 int bus_gvariant_get_size(const char *signature) _pure_;
 int bus_gvariant_get_alignment(const char *signature) _pure_;
 int bus_gvariant_is_fixed_size(const char *signature) _pure_;
 int bus_gvariant_get_size(const char *signature) _pure_;
 int bus_gvariant_get_alignment(const char *signature) _pure_;
 int bus_gvariant_is_fixed_size(const char *signature) _pure_;
index 581e8d584112b8a15f1238fa47357017ce340c74..0e507839ca07fbeea8f69d8be8e70fa85611d630 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <stdbool.h>
 
 
 #include <stdbool.h>
 
+#include "macro.h"
 #include "sd-bus.h"
 #include "sd-bus-protocol.h"
 
 #include "sd-bus.h"
 #include "sd-bus-protocol.h"
 
index 9bea43717df49aeb7d1e3d893845e2c6332bd996..d6b4cf05a74d81211d1370da6851b8a1f3774498 100644 (file)
@@ -22,6 +22,7 @@
 ***/
 
 #include <inttypes.h>
 ***/
 
 #include <inttypes.h>
+#include <stdbool.h>
 
 typedef struct XMLIntrospectOps {
         int (*on_path)(const char *path, void *userdata);
 
 typedef struct XMLIntrospectOps {
         int (*on_path)(const char *path, void *userdata);
index 7bdf3fe139e8c064b90f23ce0f742509d2051e45..8b6f1ab4f4c9c230ec1bfa6a286b3248093e2620 100644 (file)
@@ -2,6 +2,7 @@
 
 #pragma once
 
 
 #pragma once
 
+#include "macro.h"
 #include "sparse-endian.h"
 
 /* Stolen from btrfs' ctree.h */
 #include "sparse-endian.h"
 
 /* Stolen from btrfs' ctree.h */
index 7ed371a958cecef3e58f6beb0b1c2807f3ca98f7..198a7b275309985efcb2d95db3383c7d7f760782 100644 (file)
@@ -21,6 +21,8 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include "util.h"
+
 int clock_is_localtime(void);
 int clock_set_timezone(int *min);
 int clock_reset_timewarp(void);
 int clock_is_localtime(void);
 int clock_set_timezone(int *min);
 int clock_reset_timewarp(void);
index fb3a52b707028a49be3c19239f006fd2e3e37d45..618441a655f248f3f9818d9add07d7d8f0e5e6c7 100644 (file)
@@ -24,6 +24,8 @@
 #include <stdbool.h>
 #include <sys/types.h>
 
 #include <stdbool.h>
 #include <sys/types.h>
 
+#include "macro.h"
+
 bool env_name_is_valid(const char *e);
 bool env_value_is_valid(const char *e);
 bool env_assignment_is_valid(const char *e);
 bool env_name_is_valid(const char *e);
 bool env_value_is_valid(const char *e);
 bool env_assignment_is_valid(const char *e);
index d65b66a3d081786b7ff14a9ab022df0c71ccf18d..d3e229bd70fd9671db60810ffbd8459ff3b8da95 100644 (file)
@@ -23,7 +23,9 @@
 
 #include <sys/types.h>
 #include <signal.h>
 
 #include <sys/types.h>
 #include <signal.h>
+#include <stdbool.h>
 
 
+#include "util.h"
 #include "sd-event.h"
 
 typedef struct PTYForward PTYForward;
 #include "sd-event.h"
 
 typedef struct PTYForward PTYForward;
index d3dac8df63769bb201edf42f44228c38688aa574..45335e939fd819aaace61fd13e7bdcc4a5d72f1b 100644 (file)
@@ -21,6 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include <stdbool.h>
 #include <sys/types.h>
 
 typedef struct UidRange {
 #include <sys/types.h>
 
 typedef struct UidRange {