You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@apache.org on 2004/12/02 03:57:33 UTC
svn commit: r109440 - /httpd/mod_arm4/trunk/mod_arm4.c
Author: stoddard
Date: Wed Dec 1 18:57:32 2004
New Revision: 109440
URL: http://svn.apache.org/viewcvs?view=rev&rev=109440
Log:
few style tweaks
Modified:
httpd/mod_arm4/trunk/mod_arm4.c
Modified: httpd/mod_arm4/trunk/mod_arm4.c
Url: http://svn.apache.org/viewcvs/httpd/mod_arm4/trunk/mod_arm4.c?view=diff&rev=109440&p1=httpd/mod_arm4/trunk/mod_arm4.c&r1=109439&p2=httpd/mod_arm4/trunk/mod_arm4.c&r2=109440
==============================================================================
--- httpd/mod_arm4/trunk/mod_arm4.c (original)
+++ httpd/mod_arm4/trunk/mod_arm4.c Wed Dec 1 18:57:32 2004
@@ -132,8 +132,7 @@
char to_hex[] = { '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F', } ;
- for(i=0; i<len;i++)
- {
+ for(i=0; i<len;i++) {
out[2*i] = to_hex[(in[i]>>4) & 0x0f];
out[1+2*i] = to_hex[in[i] & 0x0f];
}
@@ -154,8 +153,9 @@
int i;
int maxlen = orig_len * 2 + 1;
- while((in[len] != '\0') && isxdigit(in[len]) && (len < maxlen))
+ while((in[len] != '\0') && isxdigit(in[len]) && (len < maxlen)) {
len++;
+ }
/*
* if (in[len] != '\0') at this point we're ignoring trailing non xdigit chars
@@ -176,7 +176,7 @@
}
else {
out[i] = ((10+toupper(in[2*i])-'A')<<4) |
- (0x0f & (10+toupper(in[1+2*i])-'A'));
+ (0x0f & (10+toupper(in[1+2*i])-'A'));
}
}
}
@@ -346,7 +346,8 @@
&(sconf->app_id));
if (arm_rc < 0) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
- "mod_arm: arm_register_application() failed with rc = %d. mod_arm4_ap20 is disabled.", arm_rc);
+ "mod_arm: arm_register_application() failed with rc = %d. mod_arm4_ap20 is disabled.",
+ arm_rc);
module_is_disabled = 1;
return OK;
}
@@ -380,7 +381,8 @@
&(sconf->tran_id));
if (arm_rc < 0) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
- "mod_arm: arm_register_transaction() failed with rc = %d. mod_arm4_ap20 is disabled", arm_rc);
+ "mod_arm: arm_register_transaction() failed with rc = %d. mod_arm4_ap20 is disabled",
+ arm_rc);
module_is_disabled = 1;
return OK;
}
@@ -402,7 +404,8 @@
return OK;
}
- ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, "mod_arm: ARM client initialized for server %s", s->server_hostname);
+ ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, "mod_arm: ARM client initialized for server %s",
+ s->server_hostname);
return OK;
}