This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2773] New: socklen_t type buffer lengths in inet_ntop() functions


Why are the size variables in libc/resolv/inet_ntop.c of type socklen_t instead
of size_t while in fact they have nothing to do with any socket structures?

I ask about this because I just had a proble when I read the header file and the
manual (*not* carefuly enough) and put *thoughtlessly* sizeof(struct sockaddr)
as fourth argument.  Of course it didn't work.

Indeed now for me this is only a matter of clarity but please answer.

-- 
           Summary: socklen_t type buffer lengths in inet_ntop() functions
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: stlman at poczta dot fm
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=2773

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]