diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-01 15:37:21 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-01 15:48:42 +0200 |
commit | 798931160ee2b1ceadd4202abf881157bbaadead (patch) | |
tree | 6a9051bcc6590d12dedc006b400575c79b6bcdf4 /src/libsystemd-network/sd-dhcp-server.c | |
parent | test: add space between arguments (diff) | |
download | systemd-798931160ee2b1ceadd4202abf881157bbaadead.tar.xz systemd-798931160ee2b1ceadd4202abf881157bbaadead.zip |
tree-wide: add a space after if, switch, for, and while
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-server.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c index 64f5286ead..5c9ba9f618 100644 --- a/src/libsystemd-network/sd-dhcp-server.c +++ b/src/libsystemd-network/sd-dhcp-server.c @@ -737,7 +737,7 @@ static int parse_request(uint8_t code, uint8_t len, const void *option, void *us assert(req); - switch(code) { + switch (code) { case SD_DHCP_OPTION_IP_ADDRESS_LEASE_TIME: if (len == 4) req->lifetime = unaligned_read_be32(option); @@ -1096,7 +1096,7 @@ int dhcp_server_handle_message(sd_dhcp_server *server, DHCPMessage *message, siz existing_lease = hashmap_get(server->bound_leases_by_client_id, &req->client_id); static_lease = hashmap_get(server->static_leases_by_client_id, &req->client_id); - switch(type) { + switch (type) { case DHCP_DISCOVER: { be32_t address = INADDR_ANY; |