Fix bogus declaration of local variable.

rc should be an int here, not a pgsocket.  Fairly harmless as long as
pgsocket is an integer type, but nonetheless wrong.  Error introduced
in commit 87091cb1f1.
This commit is contained in:
Tom Lane 2012-05-13 00:30:32 -04:00
parent 398b240151
commit fd350ef395
1 changed files with 2 additions and 2 deletions

View File

@ -1600,9 +1600,9 @@ ident_inet(hbaPort *port)
const SockAddr remote_addr = port->raddr;
const SockAddr local_addr = port->laddr;
char ident_user[IDENT_USERNAME_MAX + 1];
pgsocket sock_fd, /* File descriptor for socket on which we talk
pgsocket sock_fd; /* File descriptor for socket on which we talk
* to Ident */
rc; /* Return code from a locally called function */
int rc; /* Return code from a locally called function */
bool ident_return;
char remote_addr_s[NI_MAXHOST];
char remote_port[NI_MAXSERV];