Mercurial > hg > nnchat
changeset 456:bb65460c7aa2
Clean up some initialization messages.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 05:20:37 +0300 |
parents | f3362ed90676 |
children | 69ce77696c5d |
files | main.c network.c |
diffstat | 2 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sat May 26 05:16:27 2012 +0300 +++ b/main.c Sat May 26 05:20:37 2012 +0300 @@ -1868,15 +1868,11 @@ } } - // Okay ... - printMsg(currWin, "Trying to resolve host '%s' ...\n", optServer); + // Okay, try to resolve the hostname conn->host = th_strdup(optServer); conn->hst = nn_resolve_host(conn, optServer); if (conn->hst == NULL) - { - errorMsg("Could not resolve hostname: %s.\n", strerror(h_errno)); goto err_exit; - } #ifdef FINAL_BUILD /* To emulate the official client, we first make a request for
--- a/network.c Sat May 26 05:16:27 2012 +0300 +++ b/network.c Sat May 26 05:20:37 2012 +0300 @@ -93,7 +93,7 @@ { struct hostent *res = gethostbyname(name); if (res == NULL) - nn_conn_err(conn, "Could not resolve hostname: %s\n", strerror(h_errno)); + nn_conn_err(conn, "Could not resolve hostname '%s': %s\n", name, strerror(h_errno)); else nn_conn_msg(conn, "True hostname for %s is %s\n", name, res->h_name);