mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
socket-util: use structured initialization
This commit is contained in:
parent
0b7e8b322d
commit
9ec30b2769
@ -57,8 +57,9 @@ int socket_address_parse(SocketAddress *a, const char *s) {
|
||||
assert(a);
|
||||
assert(s);
|
||||
|
||||
zero(*a);
|
||||
a->type = SOCK_STREAM;
|
||||
*a = (SocketAddress) {
|
||||
.type = SOCK_STREAM,
|
||||
};
|
||||
|
||||
if (*s == '[') {
|
||||
uint16_t port;
|
||||
|
Loading…
Reference in New Issue
Block a user