selinux-util: drop unused variables
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Aug 2018 14:19:32 +0000 (23:19 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 Aug 2018 14:32:35 +0000 (16:32 +0200)
Follow-up for 7e531a5265687aef5177b070c36ca4ceab42e768.

src/basic/selinux-util.c

index 238b1d9..d5228f6 100644 (file)
@@ -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);