Added real error message for failed outgoing IP connections

This commit is contained in:
Michiel Broek 2006-02-14 20:52:16 +00:00
parent 318ff56d24
commit 17fda57677
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,9 @@ v0.83.13 13-Feb-2006
Writes LINES and COLUMNS environment into data.msg so that the Writes LINES and COLUMNS environment into data.msg so that the
joe editor can use that. joe editor can use that.
mbcico:
Added real error message for failed outgoing IP connections.
v0.83.12 06-Feb-2006 - 13-Feb-2006 v0.83.12 06-Feb-2006 - 13-Feb-2006

View File

@ -155,7 +155,7 @@ int opentcp(char *name)
clearerr(stdin); clearerr(stdin);
clearerr(stdout); clearerr(stdout);
if (connect(fd,(struct sockaddr *)&server,sizeof(server)) == -1) { if (connect(fd,(struct sockaddr *)&server,sizeof(server)) == -1) {
Syslog('+', "Cannot connect %s",inet_ntoa(server.sin_addr)); Syslog('+', "$Cannot connect %s",inet_ntoa(server.sin_addr));
return -1; return -1;
} }