Fix for no hterror().
authorBruce Momjian <bruce@momjian.us>
Mon, 13 Nov 2000 21:31:46 +0000 (21:31 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 13 Nov 2000 21:31:46 +0000 (21:31 +0000)
src/backend/libpq/pqcomm.c

index cc8bd850efc1bd19681c8380079e0aa0f04f979d..c313261a6acb7717659d84929ce10e951d8ffa54 100644 (file)
@@ -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;