bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #27577] inet-ntop example is missing quotes around "ffff:ffff:..."


From: Scott McPeak
Subject: [bug #27577] inet-ntop example is missing quotes around "ffff:ffff:..."
Date: Thu, 01 Oct 2009 21:34:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

URL:
  <http://savannah.gnu.org/bugs/?27577>

                 Summary: inet-ntop example is missing quotes around
"ffff:ffff:..."
                 Project: Guile
            Submitted by: smcpeak
            Submitted on: Thu 01 Oct 2009 09:34:53 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The documentation for inet-ntop:

http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Network-Address-Conversion.html#index-inet_002dntop-3217

Says:

(inet-ntop AF_INET 2130706433) => "127.0.0.1"
(inet-ntop AF_INET6 (- (expt 2 128) 1)) =>
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff

However, the final value is a string, so should be quoted:

guile> (inet-ntop AF_INET 2130706433)
"127.0.0.1"
guile> (inet-ntop AF_INET6 (- (expt 2 128) 1))
"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27577>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]