From f4f9d177f0a43f6a846414d34b6839a1b9b3319b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 24 Jun 2019 15:10:13 +0200 Subject: Remove references to 'inet-ntoa' and 'inet-aton'. These procedures were removed in Guile 2.2 by commit fc7bd367ab4b5027a7f80686b1e229c62e43c90b (May 2011). * libguile/socket.h (scm_inet_aton, scm_inet_ntoa): Remove. * module/system/repl/server.scm (make-tcp-server-socket): Use 'inet-pton' instead of 'inet-aton'. * doc/ref/web.texi (HTTP): Likewise in 'declare-header!' example. * doc/ref/posix.texi (Network Address Conversion): Remove documentation of 'inet-ntoa' and 'inet-aton'. --- doc/ref/web.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/ref/web.texi') diff --git a/doc/ref/web.texi b/doc/ref/web.texi index 62b25d889..f589cfbf7 100644 --- a/doc/ref/web.texi +++ b/doc/ref/web.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 2010, 2011, 2012, 2013, 2015, 2018 Free Software Foundation, Inc. +@c Copyright (C) 2010, 2011, 2012, 2013, 2015, 2018, 2019 Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @node Web @@ -458,11 +458,11 @@ HTTP stack like this: @example (declare-header! "X-Client-Address" (lambda (str) - (inet-aton str)) + (inet-pton AF_INET str)) (lambda (ip) (and (integer? ip) (exact? ip) (<= 0 ip #xffffffff))) (lambda (ip port) - (display (inet-ntoa ip) port))) + (display (inet-ntop AF_INET ip) port))) @end example @deffn {Scheme Procedure} declare-opaque-header! name -- cgit v1.2.1