`inet/arpa/inet.h: Fix typo in documentation of inet_ntop`
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Tue Aug 11 14:19:35 GMT 2026
On 11/08/26 00:31, Jay Berry wrote:
> Hello!
>
> I have been clearing out my todo folder today and I noticed that back in 2022 I had seen a typo in `<arpa/inet.h>`. I have just made a git patch that amends it, which I've attached. I am used to committing on GitHub so do bear with me if it needs reformatting. It's only a one-liner (one-character really) "astarting" -> "starting".
>
> My apologies if this is a pedantic first commit / email to this list. Maybe the typo is purposely left like that as one of those 'stable documentation' cases? I can see in the `git blame glibc-2.44.9000 -- inet/arpa/inet.h` that this has been present since 1997 (before I was born!). If not then enjoy.
>
> Thanks for glibc!
>
> Thanks,
> Jay
>
> From 56e3fdaa333520e8f1b969e7f3ce40d95936ad37 Mon Sep 17 00:00:00 2001
> From: jb2170 <email@jb2170.com>
> Date: Tue, 11 Aug 2026 03:53:03 +0100
> Subject: [PATCH] inet/arpa/inet.h: Fix typo in documentation of inet_ntop
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
>
> ---
> inet/arpa/inet.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/inet/arpa/inet.h b/inet/arpa/inet.h
> index bcccdc59ea..2efa35cdec 100644
> --- a/inet/arpa/inet.h
> +++ b/inet/arpa/inet.h
> @@ -60,7 +60,7 @@ extern int inet_pton (int __af, const char *__restrict __cp,
>
> /* Convert a Internet address in binary network format for interface
> type AF in buffer starting at CP to presentation form and place
> - result in buffer of length LEN astarting at BUF. */
> + result in buffer of length LEN starting at BUF. */
> extern const char *inet_ntop (int __af, const void *__restrict __cp,
> char *__restrict __buf, socklen_t __len)
> __THROW;
> --
> 2.55.0
>
More information about the Libc-alpha
mailing list