diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-04 18:41:27 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-05 12:52:47 +0100 |
commit | c5df80a06da02b8d652c5154084370205b3ecb85 (patch) | |
tree | 5a69d9d04804f2217415a88eb0538e63d11a34dd /src/rc-local-generator | |
parent | 278ef0ab3372ab86443c7a216677c4e41dd1c70f (diff) | |
download | systemd-c5df80a06da02b8d652c5154084370205b3ecb85.tar.gz |
rc-local-generator: small shortification
Diffstat (limited to 'src/rc-local-generator')
-rw-r--r-- | src/rc-local-generator/rc-local-generator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rc-local-generator/rc-local-generator.c b/src/rc-local-generator/rc-local-generator.c index 11f18b1173..5b432e6b02 100644 --- a/src/rc-local-generator/rc-local-generator.c +++ b/src/rc-local-generator/rc-local-generator.c @@ -21,7 +21,6 @@ static const char *arg_dest = "/tmp"; static int add_symlink(const char *service, const char *where) { const char *from, *to; - int r; assert(service); assert(where); @@ -31,8 +30,7 @@ static int add_symlink(const char *service, const char *where) { (void) mkdir_parents_label(to, 0755); - r = symlink(from, to); - if (r < 0) { + if (symlink(from, to) < 0) { if (errno == EEXIST) return 0; |