Looks like broken inet_ntop on OpenBSD/sparc

Michael A. Cleverly wrote:
On 2/6/07, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
Try this one:

#include <ns.h>

main()
{
     unsigned char b[4];
     struct in_addr addr;

     addr.s_addr = inet_addr("127.0.0.1");
     memcpy(b, &addr.s_addr, 4);
     printf("%u.%u.%u.%u\n", b[0], b[1], b[2], b[3]);
}

That produces 127.0.0.1 on OpenBSD 4.0/sparc64 :-)

Michael

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


--
Vlad Seryakov
571 262-8608 office
[EMAIL PROTECTED]
http://www.crystalballinc.com/vlad/


Reply via email to