Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2003:
[Freeciv-Dev] Re: (PR#2527) solaris warnings
Home

[Freeciv-Dev] Re: (PR#2527) solaris warnings

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2527) solaris warnings
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 6 Jun 2003 05:35:55 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Wed, Jun 04, 2003 at 07:14:28PM +0200, Reinier Post wrote:
> Raimar wrote:
> 
> [...]
> 
> > > Lines in question:
> > > 
> > >   struct sockaddr_in *sock = NULL;
> > > ...
> > >   sock = (struct sockaddr_in *) sa;
> > > 
> > > Any ideas?
> > 
> > Seems odd since sa is "struct sockaddr *".  [...]
> 
> 
> >From the Solaris 7 header files on my system:
> 
> /* in netinet/in.h */
> struct sockaddr {
>         sa_family_t     sa_family;      /* address family */
>         char            sa_data[14];    /* up to 14 bytes of direct address */
> };
> 
> /* in sys/socket.h */
> struct sockaddr_in {
>         sa_family_t     sin_family;
>         in_port_t       sin_port;
>         struct  in_addr sin_addr;
> #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
>         char            sin_zero[8];
> #else
>         unsigned char   sin_zero[8];
> #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
> };

Thanks for the info. However I can't see anything which would explain
the warning message. Do you see something?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "The very concept of PNP is a lovely dream that simply does not translate to
  reality. The confusion of manually doing stuff is nothing compared to the
  confusion of computers trying to do stuff and getting it wrong, which they
  gleefully do with great enthusiasm." 
    -- Jinx Tigr in the SDM




[Prev in Thread] Current Thread [Next in Thread]