1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

core/socket: shorten socket_fdname()

This commit is contained in:
Yu Watanabe 2017-12-19 20:12:01 +09:00
parent 827d9bf297
commit 845001221d

View File

@ -3250,10 +3250,7 @@ char *socket_fdname(Socket *s) {
* didn't specify anything specifically, use the socket unit's
* name as fallback. */
if (s->fdname)
return s->fdname;
return UNIT(s)->id;
return s->fdname ?: UNIT(s)->id;
}
static int socket_control_pid(Unit *u) {