Mercurial > hg > nnchat
comparison main.c @ 456:bb65460c7aa2
Clean up some initialization messages.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 05:20:37 +0300 |
parents | 733396469e5d |
children | 69ce77696c5d |
comparison
equal
deleted
inserted
replaced
455:f3362ed90676 | 456:bb65460c7aa2 |
---|---|
1866 errorMsg("Error setting proxy information.\n"); | 1866 errorMsg("Error setting proxy information.\n"); |
1867 goto err_exit; | 1867 goto err_exit; |
1868 } | 1868 } |
1869 } | 1869 } |
1870 | 1870 |
1871 // Okay ... | 1871 // Okay, try to resolve the hostname |
1872 printMsg(currWin, "Trying to resolve host '%s' ...\n", optServer); | |
1873 conn->host = th_strdup(optServer); | 1872 conn->host = th_strdup(optServer); |
1874 conn->hst = nn_resolve_host(conn, optServer); | 1873 conn->hst = nn_resolve_host(conn, optServer); |
1875 if (conn->hst == NULL) | 1874 if (conn->hst == NULL) |
1876 { | |
1877 errorMsg("Could not resolve hostname: %s.\n", strerror(h_errno)); | |
1878 goto err_exit; | 1875 goto err_exit; |
1879 } | |
1880 | 1876 |
1881 #ifdef FINAL_BUILD | 1877 #ifdef FINAL_BUILD |
1882 /* To emulate the official client, we first make a request for | 1878 /* To emulate the official client, we first make a request for |
1883 * policy file, even though we don't use it for anything... | 1879 * policy file, even though we don't use it for anything... |
1884 */ | 1880 */ |