Skip to content
This repository
Browse code

Little clean up

  • Loading branch information...
commit 2a60fad8c216c9e81d32c162e6fb4dc99094a8fc 1 parent 9fed6d2
Alvaro Lopez Ortega authored January 05, 2012

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  cherokee/socket.c
14  cherokee/socket.c
@@ -1430,14 +1430,14 @@ cherokee_socket_connect (cherokee_socket_t *sock)
1430 1430
 		switch (err) {
1431 1431
 		case EISCONN:
1432 1432
 			break;
1433  
-		case EINVAL:
1434  
-		case ENOENT:
1435  
-		case ECONNRESET:
1436  
-		case EHOSTUNREACH:
1437  
-		case ECONNREFUSED:
1438  
-		case EADDRNOTAVAIL:
  1433
+		case ENOENT:               /* No such file or directory */
  1434
+		case ECONNRESET:           /* Connection reset by peer */
  1435
+		case ECONNREFUSED:         /* Connection refused */
  1436
+		case ETIMEDOUT:            /* Operation timed out */
1439 1437
 			return ret_deny;
1440  
-		case ETIMEDOUT:
  1438
+		case EINVAL:               /* Invalid argument */
  1439
+		case EHOSTUNREACH:         /* No route to host */
  1440
+		case EADDRNOTAVAIL:        /* Can't assign requested address */
1441 1441
 			return ret_error;
1442 1442
 		case EAGAIN:
1443 1443
 		case EALREADY:

0 notes on commit 2a60fad

Please sign in to comment.
Something went wrong with that request. Please try again.