diff options
| author | Frédéric Bérat <fberat@redhat.com> | 2025-03-07 14:42:26 +0100 |
|---|---|---|
| committer | Frédéric Bérat <fberat@redhat.com> | 2025-03-21 09:35:16 +0100 |
| commit | 84373ef7b72c9c8ab61ce1fdfd798777715a1a52 (patch) | |
| tree | 2712a37ae318e7c9bbd2055aa044b287896d3eeb /include | |
| parent | c5113a838b28a8894da19794ca7a69c5ace959a3 (diff) | |
| download | glibc-84373ef7b72c9c8ab61ce1fdfd798777715a1a52.tar.xz glibc-84373ef7b72c9c8ab61ce1fdfd798777715a1a52.zip | |
Prepare inet_ntop to be fortified
Rename inet_ntop to __inet_ntop and create the inet_ntop weak alias
based on it in order to prepare for disabling fortification when
available.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/arpa/inet.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h index df9472ba3b..d1ea13bb19 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -5,7 +5,9 @@ extern int __inet_aton_exact (const char *__cp, struct in_addr *__inp); libc_hidden_proto (__inet_aton_exact) -libc_hidden_proto (inet_ntop) +extern __typeof (inet_ntop) __inet_ntop; +libc_hidden_proto (__inet_ntop) + libc_hidden_proto (inet_pton) extern __typeof (inet_pton) __inet_pton; libc_hidden_proto (__inet_pton) |
