Re: [HACKERS] Can someone explain this code?

2007-07-19 Thread Stephen Frost
* Magnus Hagander ([EMAIL PROTECTED]) wrote: #ifndef KRB5 (void) hostname;/* not used */ #endif [...] What does that code actually *do*? Stop the compiler from complaining about an unused argument. Thanks, Stephen signature.asc

Re: [HACKERS] Can someone explain this code?

2007-07-19 Thread Marko Kreen
On 7/19/07, Magnus Hagander [EMAIL PROTECTED] wrote: int pg_fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname, const char *password, char *PQerrormsg) { #ifndef KRB5 (void) hostname;/* not used */ #endif ... (fe-auth.c)

Re: [HACKERS] Can someone explain this code?

2007-07-19 Thread Magnus Hagander
On Thu, Jul 19, 2007 at 06:41:17AM -0400, Stephen Frost wrote: * Magnus Hagander ([EMAIL PROTECTED]) wrote: #ifndef KRB5 (void) hostname;/* not used */ #endif [...] What does that code actually *do*? Stop the compiler from complaining about an unused

Re: [HACKERS] Can someone explain this code?

2007-07-19 Thread Stephen Frost
* Magnus Hagander ([EMAIL PROTECTED]) wrote: On Thu, Jul 19, 2007 at 06:41:17AM -0400, Stephen Frost wrote: Stop the compiler from complaining about an unused argument. That makes sense, except my compiled didn't warn even when I took it out :-) Ah, well, thanks for clearifying. It depends