Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] Re: (PR#10645) clinet.c does not compile under solaris
Home

[Freeciv-Dev] Re: (PR#10645) clinet.c does not compile under solaris

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: tengfred@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#10645) clinet.c does not compile under solaris
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Oct 2004 09:19:08 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10645 >

Fredrik Tengblad wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=10645 >
> 
> When I tried to compile the freeciv-2.0.0-beta1 under Solaris I got an
> error for the file clinet.c. The following changes seems to fix it:
> Original code:
> clinet.c line 669:
> void delete_server_list(struct server_list *server_list)
> {
>   server_list_iterate(*server_list, ptmp)
>     int i;
>     int n = atoi(ptmp->nplayers);
> 
>     free(ptmp->host);
>     free(ptmp->port);
> 
> Fixed code:
> 
> void delete_server_list(struct server_list *server_list)
> {
>       int i;
>       int n;
>       server_list_iterate(*server_list, ptmp)
>       n = atoi(ptmp->nplayers);
> 
>       free(ptmp->host);
>       free(ptmp->port);
> 
> Hope this is of use for you.

This is a known bug.  It will be fixed in the next beta.

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#10645) clinet.c does not compile under solaris, Jason Short <=