summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-22 20:12:31 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-24 23:03:49 +0200
commit84ac7bea360cd369df26910e9685a7eed2327088 (patch)
tree7b941067ff1af844404ad7c433473b1d5090c1ec /src/shared
parent0f03c2a4c093e3d44f4072144827e943c05c8904 (diff)
util: split out extract_first_word() and related calls into extract-word.[ch]
This is quite a lot of code these days, hence move it to its own source file.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/condition.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/shared/condition.c b/src/shared/condition.c
index 1d7dd49e04..6987cf7120 100644
--- a/src/shared/condition.c
+++ b/src/shared/condition.c
@@ -19,24 +19,26 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <stdlib.h>
#include <errno.h>
+#include <fnmatch.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <fnmatch.h>
#include "sd-id128.h"
-#include "util.h"
-#include "virt.h"
-#include "path-util.h"
-#include "architecture.h"
-#include "smack-util.h"
+
#include "apparmor-util.h"
-#include "ima-util.h"
-#include "selinux-util.h"
+#include "architecture.h"
#include "audit.h"
#include "cap-list.h"
+#include "extract-word.h"
#include "hostname-util.h"
+#include "ima-util.h"
+#include "path-util.h"
+#include "selinux-util.h"
+#include "smack-util.h"
+#include "util.h"
+#include "virt.h"
#include "condition.h"
Condition* condition_new(ConditionType type, const char *parameter, bool trigger, bool negate) {