1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-22 09:57:34 +03:00

parse-socket-bind-item: fix typo in comment

This also adds a blank line after each function declaration to follow our
coding style.
This commit is contained in:
Yu Watanabe 2021-07-02 20:49:40 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent e9b0f785e7
commit 2167d8086d

View File

@ -12,6 +12,7 @@ static int parse_af_token(
int *ip_protocol,
uint16_t *nr_ports,
uint16_t *port_min) {
int af;
assert(token);
@ -31,6 +32,7 @@ static int parse_ip_protocol_token(
int *ip_protocol,
uint16_t *nr_ports,
uint16_t *port_min) {
int proto;
assert(token);
@ -50,6 +52,7 @@ static int parse_ip_ports_token(
int *ip_protocol,
uint16_t *nr_ports,
uint16_t *port_min) {
assert(token);
assert(nr_ports);
assert(port_min);
@ -82,6 +85,7 @@ int parse_socket_bind_item(
int *ip_protocol,
uint16_t *nr_ports,
uint16_t *port_min) {
/* Order of token parsers is important. */
const parse_token_f parsers[] = {
&parse_af_token,
@ -134,7 +138,7 @@ int parse_socket_bind_item(
if (r < 0)
return r;
/* Parsers applied succesfully, but end of the string not reached. */
/* Parsers applied successfully, but end of the string not reached. */
if (p)
return -EINVAL;