bugGuile - Bugs: bug #27577, inet-ntop example is missing...

 
 

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

Submitter:  Scott McPeak <smcpeak>
Submitted:  Thu 01 Oct 2009 09:34:53 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 01 Oct 2009 10:40:44 PM UTC, comment #1: 

Thanks, I've fixed this now in Git.

Neil Jerram <ossau>
Group administrator
Thu 01 Oct 2009 09:34:53 PM UTC, original submission:  

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"

Scott McPeak <smcpeak>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ossau (Posted a comment)
  • -email is unavailable- added by smcpeak (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-10-01 ossau StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-0329.
    Corresponding source code