diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-11-05 13:44:20 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-11-09 20:01:06 +0100 |
commit | e1427b138fbf7b7f13bb61187635b882be3ca2b2 (patch) | |
tree | b3ce451e25222b085aee42f70bcd8ae46386642b /src/rc-local-generator | |
parent | coccinelle: additional errno.cocci hunk (diff) | |
download | systemd-e1427b138fbf7b7f13bb61187635b882be3ca2b2.tar.xz systemd-e1427b138fbf7b7f13bb61187635b882be3ca2b2.zip |
treewide: apply errno.cocci
with small manual cleanups for style.
Diffstat (limited to 'src/rc-local-generator')
-rw-r--r-- | src/rc-local-generator/rc-local-generator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rc-local-generator/rc-local-generator.c b/src/rc-local-generator/rc-local-generator.c index 8e5cf0908c..6ecadbf3e5 100644 --- a/src/rc-local-generator/rc-local-generator.c +++ b/src/rc-local-generator/rc-local-generator.c @@ -62,8 +62,7 @@ static int add_symlink(const char *service, const char *where) { if (errno == EEXIST) return 0; - log_error_errno(errno, "Failed to create symlink %s: %m", to); - return -errno; + return log_error_errno(errno, "Failed to create symlink %s: %m", to); } return 1; |