some comments to address
authorDaniel Kouřil <kouril@ics.muni.cz>
Tue, 13 Dec 2011 09:30:22 +0000 (09:30 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Tue, 13 Dec 2011 09:30:22 +0000 (09:30 +0000)
emi.canl.canl-c/src/canl.c

index 0d13e6a..3bcdeae 100644 (file)
@@ -120,7 +120,7 @@ int canl_io_connect(canl_ctx cc, canl_io_handler io, char * host, int port,
                 err = EHOSTUNREACH; //TODO check
                 set_error(glb_cc, err, posix_error, "Cannot resolve"
                         " the server hostname (%s)", host);
-                goto end;
+                goto end; /* XXX continue */
         }
 
         if (err)
@@ -169,6 +169,7 @@ static int try_connect(io_handler *io_cc, glb_ctx *glb_cc, char *addr,
         int addrtype, int port, struct timeval *timeout)
  * return 0 when successful
  * errno otherwise*/
+/* XXX use set_error on errors and return a CANL return code */
 static int try_connect(glb_ctx *glb_cc, io_handler *io_cc, char *addr,
         int addrtype, int port, struct timeval *timeout)
 {