]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
parse-socket-bind-item: fix typo in comment
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Jul 2021 11:49:40 +0000 (20:49 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 2 Jul 2021 11:53:00 +0000 (13:53 +0200)
This also adds a blank line after each function declaration to follow our
coding style.

src/shared/parse-socket-bind-item.c

index 214abd8b4ff5bc308dcdbb384cf7134fdb236bae..3c924676321ceb92352f931ad57f9390e8f79f84 100644 (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;