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

 
 

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

Submitted by:  Scott McPeak <smcpeak>
Submitted on:  Thu 01 Oct 2009 09:34:53 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Thanks, I've fixed this now in Git.

Neil Jerram <ossau>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Oct 2009 10:40:44 PM UTCossauStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1