From 2167d8086daadde1bc104f91212661d2d9b2d69e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 2 Jul 2021 20:49:40 +0900 Subject: [PATCH] parse-socket-bind-item: fix typo in comment This also adds a blank line after each function declaration to follow our coding style. --- src/shared/parse-socket-bind-item.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shared/parse-socket-bind-item.c b/src/shared/parse-socket-bind-item.c index 214abd8b4ff..3c924676321 100644 --- a/src/shared/parse-socket-bind-item.c +++ b/src/shared/parse-socket-bind-item.c @@ -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; -- 2.47.3