This also adds a blank line after each function declaration to follow our
coding style.
int *ip_protocol,
uint16_t *nr_ports,
uint16_t *port_min) {
+
int af;
assert(token);
int *ip_protocol,
uint16_t *nr_ports,
uint16_t *port_min) {
+
int proto;
assert(token);
int *ip_protocol,
uint16_t *nr_ports,
uint16_t *port_min) {
+
assert(token);
assert(nr_ports);
assert(port_min);
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,
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;