mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
core/socket: shorten socket_fdname()
This commit is contained in:
parent
827d9bf297
commit
845001221d
@ -3250,10 +3250,7 @@ char *socket_fdname(Socket *s) {
|
|||||||
* didn't specify anything specifically, use the socket unit's
|
* didn't specify anything specifically, use the socket unit's
|
||||||
* name as fallback. */
|
* name as fallback. */
|
||||||
|
|
||||||
if (s->fdname)
|
return s->fdname ?: UNIT(s)->id;
|
||||||
return s->fdname;
|
|
||||||
|
|
||||||
return UNIT(s)->id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int socket_control_pid(Unit *u) {
|
static int socket_control_pid(Unit *u) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user