< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] ares_init error?



Dear all,
 
About the getenv(), i tried to rewrite based on a open code (in ruby language ).
I pass almost warning. But they still exist a warning in:
   1)  in file ares_fds.c.
             line FD_SET(server->udp_socket, read_fds);
                   FD_SET(server->tcp_socket, read_fds);
                  FD_SET(server->tcp_socket, write_fds);
 
     warning is "......\ares\ares_fds.c(37) : warning C4018: '==' : signed/unsigned mismatch"
   2) in file ares_process,
            line  FD_CLR(server->udp_socket, read_fds);
    warning is ".....\ares\ares_process.c(300) : warning C4018: '==' : signed/unsigned mismatch "
 
I tried to lose the warning; and then after built successfully areswince.lib, i tested with example
ahost (In open source code of c-ares library which i test successfully in win32 with ares of resiprocate ).
I met the error in ares_init cos status !=0,( error come from code in the end ) 
what should i changed in soure code?
what do you thinnk about it?
Appreciated so much your advice.
 
julien
 
 
status = ares_init(&channel);
 if (status !=0)
 {
   //fprintf(stderr, "ares_init: %s\n", ares_strerror(status));
      //return 1;
  MessageBox(_T("ares_strerror"),_T("ares_strerror"),MB_OK);
 }