aboutsummaryrefslogtreecommitdiffstats
path: root/man3/inet_net_pton.3
diff options
context:
space:
mode:
authorAlex Colomar <alx.manpages@gmail.com>2022-09-18 01:09:59 +0200
committerAlejandro Colomar <alx@kernel.org>2022-11-10 00:53:45 +0100
commitc64cd13e002561c6802c6a1a1a8a640f034fea70 (patch)
tree6aa203e7d7d6a36fdd457994a78fc10c3b10d8ca /man3/inet_net_pton.3
parent77f31ff920bc0abdf73ee4ece808ba4eeeff90a4 (diff)
downloadman-pages-c64cd13e0025.tar.gz
Various pages: SYNOPSIS: Use VLA syntax in 'void *' function parameters
Use VLA syntax also for void *, even if it's a bit more weird. Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2611.htm> Cc: Ingo Schwarze <schwarze@openbsd.org> Cc: JeanHeyd Meneide <wg14@soasis.org> Cc: Martin Uecker <uecker@tugraz.at> Cc: <gcc@gcc.gnu.org> Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3/inet_net_pton.3')
-rw-r--r--man3/inet_net_pton.38
1 files changed, 5 insertions, 3 deletions
diff --git a/man3/inet_net_pton.3 b/man3/inet_net_pton.3
index 0af4478b04..566b49aae5 100644
--- a/man3/inet_net_pton.3
+++ b/man3/inet_net_pton.3
@@ -13,9 +13,11 @@ Resolver library
.B #include <arpa/inet.h>
.PP
.BI "int inet_net_pton(int " af ", const char *" pres ,
-.BI " void *" netp ", size_t " nsize );
-.BI "char *inet_net_ntop(int " af ", const void *" netp ", int " bits ,
-.BI " char " pres [. psize "], size_t " psize );
+.BI " void " netp [. nsize "], size_t " nsize );
+.BI "char *inet_net_ntop(int " af ,
+.BI " const void " netp [(. bits " - CHAR_BIT + 1) / CHAR_BIT],"
+.BI " int " bits ,
+.BI " char " pres [. psize "], size_t " psize );
.fi
.PP
.RS -4