1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

Fix doc for inet-ntop: always produces a string

Thanks to Scott McPeak for reporting this.

* libguile/socket.c (scm_inet_ntop): In docstring, add quotes around
  IPv6 address (+ reflow a bit).

* doc/ref/posix.texi (Network Address Conversion): Corresponding
  change.

* doc/maint/guile.texi: Corresponding change.
This commit is contained in:
Neil Jerram 2009-10-01 23:38:57 +01:00
parent 451e15a06c
commit 84a54b292d
3 changed files with 6 additions and 6 deletions

View file

@ -10708,8 +10708,8 @@ the input is an integer with normal host byte ordering.
@lisp @lisp
(inet-ntop AF_INET 2130706433) @result{} "127.0.0.1" (inet-ntop AF_INET 2130706433) @result{} "127.0.0.1"
(inet-ntop AF_INET6 (- (expt 2 128) 1)) @result{} (inet-ntop AF_INET6 (- (expt 2 128) 1))
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff @result{} "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"
@end lisp @end lisp
@end deffn @end deffn

View file

@ -2310,8 +2310,8 @@ Convert a network address from an integer to a printable string.
@lisp @lisp
(inet-ntop AF_INET 2130706433) @result{} "127.0.0.1" (inet-ntop AF_INET 2130706433) @result{} "127.0.0.1"
(inet-ntop AF_INET6 (- (expt 2 128) 1)) @result{} (inet-ntop AF_INET6 (- (expt 2 128) 1))
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff @result{} "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"
@end lisp @end lisp
@end deffn @end deffn

View file

@ -397,8 +397,8 @@ SCM_DEFINE (scm_inet_ntop, "inet-ntop", 2, 0, 0,
"@var{family} can be @code{AF_INET} or @code{AF_INET6}. E.g.,\n\n" "@var{family} can be @code{AF_INET} or @code{AF_INET6}. E.g.,\n\n"
"@lisp\n" "@lisp\n"
"(inet-ntop AF_INET 2130706433) @result{} \"127.0.0.1\"\n" "(inet-ntop AF_INET 2130706433) @result{} \"127.0.0.1\"\n"
"(inet-ntop AF_INET6 (- (expt 2 128) 1)) @result{}\n" "(inet-ntop AF_INET6 (- (expt 2 128) 1))\n"
"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\n" " @result{} \"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\"\n"
"@end lisp") "@end lisp")
#define FUNC_NAME s_scm_inet_ntop #define FUNC_NAME s_scm_inet_ntop
{ {