Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b557be5

Browse files
committed
Fix for no hterror().
1 parent 2150c2e commit b557be5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
3030
* Portions Copyright (c) 1994, Regents of the University of California
3131
*
32-
* $Id: pqcomm.c,v 1.110 2000/11/13 15:18:09 momjian Exp $
32+
* $Id: pqcomm.c,v 1.111 2000/11/13 21:31:46 momjian Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -255,8 +255,8 @@ StreamServerPort(int family, char *hostName, unsigned short portName,
255255
if ((hp == NULL) || (hp->h_addrtype != AF_INET))
256256
{
257257
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
258-
"FATAL: StreamServerPort: gethostbyname(%s) failed: %s\n",
259-
hostName, hstrerror(h_errno));
258+
"FATAL: StreamServerPort: gethostbyname(%s) failed\n",
259+
hostName);
260260
fputs(PQerrormsg, stderr);
261261
pqdebug("%s", PQerrormsg);
262262
return STATUS_ERROR;

0 commit comments

Comments
 (0)