mturk 2005/02/22 00:59:57 Modified: jk/native/common jk_lb_worker.c Log: Update code style to be consistent. No functional change. Revision Changes Path 1.71 +3 -6 jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c Index: jk_lb_worker.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -r1.70 -r1.71 --- jk_lb_worker.c 22 Feb 2005 08:42:45 -0000 1.70 +++ jk_lb_worker.c 22 Feb 2005 08:59:57 -0000 1.71 @@ -52,14 +52,13 @@ typedef struct lb_endpoint lb_endpoint_t; -/* ========================================================================= */ /* Retrieve the parameter with the given name */ static char *get_path_param(jk_ws_service_t *s, const char *name) { char *id_start = NULL; for (id_start = strstr(s->req_uri, name); id_start; id_start = strstr(id_start + 1, name)) { - if ('=' == id_start[strlen(name)]) { + if (id_start[strlen(name)] == '=') { /* * Session path-cookie was found, get it's value */ @@ -89,7 +88,6 @@ return NULL; } -/* ========================================================================= */ /* Retrieve the cookie with the given name */ static char *get_cookie(jk_ws_service_t *s, const char *name) { @@ -97,7 +95,7 @@ char *result = NULL; for (i = 0; i < s->num_headers; i++) { - if (0 == strcasecmp(s->headers_names[i], "cookie")) { + if (strcasecmp(s->headers_names[i], "cookie") == 0) { char *id_start; for (id_start = strstr(s->headers_values[i], name); @@ -142,7 +140,6 @@ } -/* ========================================================================= */ /* Retrieve session id from the cookie or the parameter */ /* (parameter first) */ static char *get_sessionid(jk_ws_service_t *s)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]