diff options
author | oharboe <oharboe> | 2008-07-23 19:41:21 +0000 |
---|---|---|
committer | oharboe <oharboe> | 2008-07-23 19:41:21 +0000 |
commit | 973dc277759ebd559b704d39c2aa4ab710a78667 (patch) | |
tree | 519859d4228e54ec5d178a179c9378929e54e4c2 /jim-aio.c | |
parent | 269f158a92c13cad5720f9c75ed56bc0d673d181 (diff) | |
download | jimtcl-973dc277759ebd559b704d39c2aa4ab710a78667.zip jimtcl-973dc277759ebd559b704d39c2aa4ab710a78667.tar.gz jimtcl-973dc277759ebd559b704d39c2aa4ab710a78667.tar.bz2 |
Uwe Klein:
* fix missing vararg.h in some files ( included in jim.h )
* in aio.socket return an error when hosti resolution fails
instead of just carrying on.
Diffstat (limited to 'jim-aio.c')
-rw-r--r-- | jim-aio.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -631,8 +631,12 @@ static int JimAioSockCommand(Jim_Interp *interp, int argc, port = atol(stport); he = gethostbyname(sthost); /* FIX!!!! this still results in null pointer exception here. - if (!he) - herror("gethostbyname"); + /* FIXED!!!! debug output but no JIM_ERR done UK. + if (!he) { + Jim_SetResultString(interp,hstrerror(h_errno),-1); + return JIM_ERR; + } + fprintf(stderr,"Official name is: %s\n", he->h_name); fprintf(stderr,"IP address: %s\n", inet_ntoa(*(struct in_addr*)he->h_addr)); */ |