From: Bruce Momjian Date: Mon, 13 Nov 2000 21:31:46 +0000 (+0000) Subject: Fix for no hterror(). X-Git-Tag: REL7_1_BETA~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b557be50a05953267055376c92b139e951814239;p=postgresql Fix for no hterror(). --- diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index 2434d6ff16..98ece64286 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -29,7 +29,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.c,v 1.110 2000/11/13 15:18:09 momjian Exp $ + * $Id: pqcomm.c,v 1.111 2000/11/13 21:31:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -255,8 +255,8 @@ StreamServerPort(int family, char *hostName, unsigned short portName, if ((hp == NULL) || (hp->h_addrtype != AF_INET)) { snprintf(PQerrormsg, PQERRORMSG_LENGTH, - "FATAL: StreamServerPort: gethostbyname(%s) failed: %s\n", - hostName, hstrerror(h_errno)); + "FATAL: StreamServerPort: gethostbyname(%s) failed\n", + hostName); fputs(PQerrormsg, stderr); pqdebug("%s", PQerrormsg); return STATUS_ERROR;