Changeset 540
- Timestamp:
- 12/26/06 14:13:41 (2 years ago)
- Files:
-
- cherokee/trunk/cherokee/balancer_round_robin.h (modified) (1 diff)
- cherokee/trunk/cherokee/buffer.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/cherokee/balancer_round_robin.h
r387 r540 39 39 } cherokee_balancer_round_robin_t; 40 40 41 #define BAL_RR(x) ((cherokee_balancer_round_robin_ file_t *)(x))41 #define BAL_RR(x) ((cherokee_balancer_round_robin_t *)(x)) 42 42 43 43 cherokee/trunk/cherokee/buffer.c
r534 r540 1446 1446 1447 1447 /* Verify formal parameters 1448 * (those which are not tested should raise a segment violation).1448 * (those which are not tested would raise a segment violation). 1449 1449 */ 1450 1450 if (buf->buf == NULL || … … 1463 1463 1464 1464 result_length += (replacement_length - substring_length); 1465 } 1466 1465 } 1466 1467 1467 /* If no substring have been found, then return now. 1468 1468 */ … … 1481 1481 */ 1482 1482 result = (char *) malloc (result_length + 1); 1483 if ( result == NULL)1483 if (unlikely (result == NULL)) 1484 1484 return ret_nomem; 1485 1485