diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-22 15:22:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-25 11:48:21 +0100 |
commit | 18c528e99fb50c2d7d63b81ba5b91881db74f4c5 (patch) | |
tree | d0aec7ae124c6a4060e76065ed3820145ad4e8a7 /src/core/cgroup.c | |
parent | 0adc28ceecab2fad2fe74d13d58657dfceddd4c3 (diff) | |
download | systemd-18c528e99fb50c2d7d63b81ba5b91881db74f4c5.tar.gz |
basic: split out blockdev-util.[ch] from util.h
With three functions it makes sense to split this out now.
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r-- | src/core/cgroup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 78ef885b06..d08b4a0787 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -22,6 +22,7 @@ #include <fnmatch.h> #include "alloc-util.h" +#include "blockdev-util.h" #include "bpf-firewall.h" #include "cgroup-util.h" #include "cgroup.h" @@ -307,7 +308,7 @@ static int lookup_block_device(const char *p, dev_t *dev) { /* If this is a partition, try to get the originating * block device */ - block_get_whole_disk(*dev, dev); + (void) block_get_whole_disk(*dev, dev); } else { log_warning("%s is not a block device and file system block device cannot be determined or is not local.", p); return -ENODEV; |