Mercurial > hg > nnchat
changeset 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 | 317df807da54 |
children | 86904a43c339 |
files | nnchat.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Mon Nov 15 06:02:50 2010 +0200 +++ b/nnchat.c Mon Nov 15 06:34:14 2010 +0200 @@ -916,8 +916,7 @@ THMSG(1, "Trying to resolve host '%s' ...\n", optServer); tmpHost = gethostbyname(optServer); if (tmpHost == NULL) { - THERR("Could not resolve hostname: %s.\n", - hstrerror(h_errno)); + THERR("Could not resolve hostname: %s.\n", strerror(h_errno)); goto err_exit; } THMSG(2, "True hostname: %s\n", tmpHost->h_name);