Merge pull request #13836 from systemd/assert-cleanups-and-constification

Assert cleanups and constification
This commit is contained in:
Yu Watanabe
2019-10-25 13:36:00 +09:00
committed by GitHub
15 changed files with 101 additions and 121 deletions
+5
View File
@@ -58,3 +58,8 @@
STRV_MAKE(CONF_PATHS(n))
#define HIGH_RLIMIT_MEMLOCK (1024ULL*1024ULL*64ULL)
#define PLYMOUTH_SOCKET { \
.un.sun_family = AF_UNIX, \
.un.sun_path = "\0/org/freedesktop/plymouthd", \
}
-2
View File
@@ -162,8 +162,6 @@ basic_sources = files('''
parse-util.h
path-util.c
path-util.h
plymouth-util.c
plymouth-util.h
prioq.c
prioq.h
proc-cmdline.c
-9
View File
@@ -1,9 +0,0 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#include <unistd.h>
#include "plymouth-util.h"
bool plymouth_running(void) {
return access("/run/plymouth/pid", F_OK) >= 0;
}
-11
View File
@@ -1,11 +0,0 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#define PLYMOUTH_SOCKET { \
.un.sun_family = AF_UNIX, \
.un.sun_path = "\0/org/freedesktop/plymouthd", \
}
bool plymouth_running(void);