Re: iphlpapi: Only call res_init() once per process

2007-04-19 Thread Kai Blin
On Thursday 19 April 2007 23:34, Alexandre Julliard wrote: > James Liggett <[EMAIL PROTECTED]> writes: > > Actually I think in this case they would be. Most compilers do this by > > default IIRC (if you'd like to see for yourself, try the attached test.) > > Still, I think it would be prudent to pu

Re: iphlpapi: Only call res_init() once per process

2007-04-19 Thread Alexandre Julliard
James Liggett <[EMAIL PROTECTED]> writes: > Actually I think in this case they would be. Most compilers do this by > default IIRC (if you'd like to see for yourself, try the attached test.) > Still, I think it would be prudent to put the 0 in there anyway, sine I > don't think there's a standard t

Re: iphlpapi: Only call res_init() once per process

2007-04-19 Thread James Liggett
On Thu, 2007-04-19 at 07:49 +0200, Kai Blin wrote: > On Wednesday 18 April 2007 20:39, Hans Leidekker wrote: > > +static int resolver_initialised; > > Shouldn't that be > > static int resolver_initilised = 0; > > here? I thought that in C, ints aren't initialized to 0 automatically. Actually I t

Re: iphlpapi: Only call res_init() once per process

2007-04-18 Thread H. Verbeet
On 19/04/07, Kai Blin <[EMAIL PROTECTED]> wrote: On Wednesday 18 April 2007 20:39, Hans Leidekker wrote: > +static int resolver_initialised; Shouldn't that be static int resolver_initilised = 0; here? I thought that in C, ints aren't initialized to 0 automatically. Afaik static variables are

Re: iphlpapi: Only call res_init() once per process

2007-04-18 Thread Kai Blin
On Wednesday 18 April 2007 20:39, Hans Leidekker wrote: > +static int resolver_initialised; Shouldn't that be static int resolver_initilised = 0; here? I thought that in C, ints aren't initialized to 0 automatically. > +/* call res_init() just once because of a bug in Mac OSX 10.4 */ > +static

Re: iphlpapi: Only call res_init() once per process

2007-04-18 Thread H. Verbeet
On 18/04/07, Jason Green <[EMAIL PROTECTED]> wrote: On 4/18/07, H. Verbeet <[EMAIL PROTECTED]> wrote: > On 18/04/07, Jason Green <[EMAIL PROTECTED]> wrote: > > Original author: Mark Adams, TransGaming Technologies. > > > Why are you the one submitting this then, using a private mail > address? (A

Re: iphlpapi: Only call res_init() once per process

2007-04-18 Thread Jason Green
On 4/18/07, H. Verbeet <[EMAIL PROTECTED]> wrote: On 18/04/07, Jason Green <[EMAIL PROTECTED]> wrote: > Original author: Mark Adams, TransGaming Technologies. > Why are you the one submitting this then, using a private mail address? (Are you even allowed to, for that matter?) Because my @trans

Re: iphlpapi: Only call res_init() once per process

2007-04-18 Thread H. Verbeet
On 18/04/07, Jason Green <[EMAIL PROTECTED]> wrote: Original author: Mark Adams, TransGaming Technologies. Why are you the one submitting this then, using a private mail address? (Are you even allowed to, for that matter?)