From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 7D1FC5A005E for ; Wed, 16 Nov 2022 05:42:18 +0100 (CET) Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4NBr4R0SnQz4xZj; Wed, 16 Nov 2022 15:42:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1668573735; bh=VuEufTYIKQRufYkZO4Mldk7zXKi7/VfaGLMLY/hW4oM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BfbLcQrhsAOSlKMA/png1U8Lec+heDYEdgZD1M8VvbQsxKZ02Bx7Y1CDET8DVP1ck pyLfd9XAy7qiH2PMKSOogxXCBHh9/LGuA3xHfjuskA65wNkWfwDWKsLU4pdIaBP722 I4LZS3zfLY3qKbqL4O7XfD7FR+e/3t/8CXUY8LdU= From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 02/32] style: Minor corrections to function comments Date: Wed, 16 Nov 2022 15:41:42 +1100 Message-Id: <20221116044212.3876516-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116044212.3876516-1-david@gibson.dropbear.id.au> References: <20221116044212.3876516-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: RBSI3XIURAM437T5S6MAEYW7WFI2JK56 X-Message-ID-Hash: RBSI3XIURAM437T5S6MAEYW7WFI2JK56 X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.3 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Some style issues and a typo. Signed-off-by: David Gibson --- conf.c | 6 +++--- tap.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf.c b/conf.c index 1adcf83..3ad247e 100644 --- a/conf.c +++ b/conf.c @@ -112,9 +112,9 @@ static int get_bound_ports_ns(void *arg) * @s: String to search * @c: Delimiter character * - * Returns: If another @c is found in @s, returns a pointer to the - * character *after* the delimiter, if no further @c is in - * @s, return NULL + * Return: If another @c is found in @s, returns a pointer to the + * character *after* the delimiter, if no further @c is in @s, + * return NULL */ static char *next_chunk(const char *s, char c) { diff --git a/tap.c b/tap.c index abeff25..707660c 100644 --- a/tap.c +++ b/tap.c @@ -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 * @c: Execution context * - * Returns: IPv4 address, network order + * Return: IPv4 address, network order */ 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 * @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 *src) -- 2.38.1