public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19442] New: inet_ntoa always outputs 0.0.0.0 when built with -maix64
@ 2005-01-14 12:17 john dot hodgkinson at boldonjames dot com
2005-01-14 13:01 ` [Bug c/19442] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: john dot hodgkinson at boldonjames dot com @ 2005-01-14 12:17 UTC (permalink / raw)
To: gcc-bugs
#include <sys/types.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
main()
{
char buf[] = { 0xC2, 0x48, 0xA4, 0x47};
struct in_addr ipaddr;
char *rfc1006;
memcpy(&ipaddr, buf, sizeof(struct in_addr));
rfc1006 = inet_ntoa(ipaddr);
printf("Address is : %s\n", rfc1006);
}
--
Summary: inet_ntoa always outputs 0.0.0.0 when built with -maix64
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john dot hodgkinson at boldonjames dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-ibm-aix5.2.0.0
GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19442
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/19442] inet_ntoa always outputs 0.0.0.0 when built with -maix64
2005-01-14 12:17 [Bug c/19442] New: inet_ntoa always outputs 0.0.0.0 when built with -maix64 john dot hodgkinson at boldonjames dot com
@ 2005-01-14 13:01 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-14 13:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14 13:00 -------
*** This bug has been marked as a duplicate of 19428 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19442
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-14 13:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-14 12:17 [Bug c/19442] New: inet_ntoa always outputs 0.0.0.0 when built with -maix64 john dot hodgkinson at boldonjames dot com
2005-01-14 13:01 ` [Bug c/19442] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).