comparison nnchat.c @ 174:f5518f10dd1a

Don't use hstrerror(), but strerror() instead.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 15 Nov 2010 06:34:14 +0200
parents ffba05eb578c
children 86904a43c339
comparison
equal deleted inserted replaced
173:317df807da54 174:f5518f10dd1a
914 914
915 /* Okay ... */ 915 /* Okay ... */
916 THMSG(1, "Trying to resolve host '%s' ...\n", optServer); 916 THMSG(1, "Trying to resolve host '%s' ...\n", optServer);
917 tmpHost = gethostbyname(optServer); 917 tmpHost = gethostbyname(optServer);
918 if (tmpHost == NULL) { 918 if (tmpHost == NULL) {
919 THERR("Could not resolve hostname: %s.\n", 919 THERR("Could not resolve hostname: %s.\n", strerror(h_errno));
920 hstrerror(h_errno));
921 goto err_exit; 920 goto err_exit;
922 } 921 }
923 THMSG(2, "True hostname: %s\n", tmpHost->h_name); 922 THMSG(2, "True hostname: %s\n", tmpHost->h_name);
924 923
925 /* To emulate the official client, we first make a request for 924 /* To emulate the official client, we first make a request for