diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-15 12:08:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-15 19:35:00 +0200 |
commit | 155b6876699bcca455b50f52c541aed41c2bf8d3 (patch) | |
tree | a2e55423b8d41075d71e1ae865ef526f0a2de149 /src/journal/journald-syslog.c | |
parent | socket-util: add new sockaddr_un_unlink() helper (diff) | |
download | systemd-155b6876699bcca455b50f52c541aed41c2bf8d3.tar.xz systemd-155b6876699bcca455b50f52c541aed41c2bf8d3.zip |
tree-wide: use sockaddr_un_unlink() whereever appropriate
Let's port everything over.
Diffstat (limited to 'src/journal/journald-syslog.c')
-rw-r--r-- | src/journal/journald-syslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c index 46cc110f1c..5bf057f4ce 100644 --- a/src/journal/journald-syslog.c +++ b/src/journal/journald-syslog.c @@ -457,7 +457,7 @@ int server_open_syslog_socket(Server *s) { if (s->syslog_fd < 0) return log_error_errno(errno, "socket() failed: %m"); - (void) unlink(sa.un.sun_path); + (void) sockaddr_un_unlink(&sa.un); r = bind(s->syslog_fd, &sa.sa, SOCKADDR_UN_LEN(sa.un)); if (r < 0) |