summaryrefslogtreecommitdiffstats
path: root/src/basic/selinux-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-08-22 16:19:32 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-22 16:32:35 +0200
commit71d1700afa6095ee6335eb5c88bd30a820546ec0 (patch)
tree604db8e62c8cabdbc579610f8269d3e173106d6f /src/basic/selinux-util.c
parentman: correct journald field name (diff)
downloadsystemd-71d1700afa6095ee6335eb5c88bd30a820546ec0.tar.xz
systemd-71d1700afa6095ee6335eb5c88bd30a820546ec0.zip
selinux-util: drop unused variables
Follow-up for 7e531a5265687aef5177b070c36ca4ceab42e768.
Diffstat (limited to 'src/basic/selinux-util.c')
-rw-r--r--src/basic/selinux-util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/basic/selinux-util.c b/src/basic/selinux-util.c
index 238b1d95e2..d5228f6746 100644
--- a/src/basic/selinux-util.c
+++ b/src/basic/selinux-util.c
@@ -319,7 +319,6 @@ char* mac_selinux_free(char *label) {
#if HAVE_SELINUX
static int selinux_create_file_prepare_abspath(const char *abspath, mode_t mode) {
_cleanup_freecon_ char *filecon = NULL;
- _cleanup_free_ char *path = NULL;
int r;
assert(abspath);
@@ -351,7 +350,6 @@ int mac_selinux_create_file_prepare_at(int dirfd, const char *path, mode_t mode)
#if HAVE_SELINUX
_cleanup_free_ char *abspath = NULL;
- _cleanup_close_ int fd = -1;
assert(path);