1
0
mirror of https://passt.top/passt synced 2024-07-02 07:52:41 +00:00

style: Minor corrections to function comments

Some style issues and a typo.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2022-11-17 16:58:38 +11:00 committed by Stefano Brivio
parent e6948822ba
commit 698e4fd761
2 changed files with 6 additions and 6 deletions

6
conf.c
View File

@ -112,9 +112,9 @@ static int get_bound_ports_ns(void *arg)
* @s: String to search * @s: String to search
* @c: Delimiter character * @c: Delimiter character
* *
* Returns: If another @c is found in @s, returns a pointer to the * Return: If another @c is found in @s, returns a pointer to the
* character *after* the delimiter, if no further @c is in * character *after* the delimiter, if no further @c is in @s,
* @s, return NULL * return NULL
*/ */
static char *next_chunk(const char *s, char c) static char *next_chunk(const char *s, char c)
{ {

6
tap.c
View File

@ -90,7 +90,7 @@ int tap_send(const struct ctx *c, const void *data, size_t len)
* tap_ip4_daddr() - Normal IPv4 destination address for inbound packets * tap_ip4_daddr() - Normal IPv4 destination address for inbound packets
* @c: Execution context * @c: Execution context
* *
* Returns: IPv4 address, network order * Return: IPv4 address, network order
*/ */
struct in_addr tap_ip4_daddr(const struct ctx *c) struct in_addr tap_ip4_daddr(const struct ctx *c)
{ {
@ -98,11 +98,11 @@ struct in_addr tap_ip4_daddr(const struct ctx *c)
} }
/** /**
* tap_ip6_daddr() - Normal IPv4 destination address for inbound packets * tap_ip6_daddr() - Normal IPv6 destination address for inbound packets
* @c: Execution context * @c: Execution context
* @src: Source address * @src: Source address
* *
* Returns: pointer to IPv6 address * Return: pointer to IPv6 address
*/ */
const struct in6_addr *tap_ip6_daddr(const struct ctx *c, const struct in6_addr *tap_ip6_daddr(const struct ctx *c,
const struct in6_addr *src) const struct in6_addr *src)