} while (r > l);
// Transform all qualifying delimiters to commas
- for (char *t=a; t[0]; ++t) {
+ char *t;
+ for (t=a; t[0]; ++t) {
if ((t[0]==';') || (t[0]=='|')) {
t[0]=',';
}
}
int num_addresses = num_tokens(a, ',');
- for (int i=0; i<num_addresses; ++i) {
+ int i;
+ for (i=0; i<num_addresses; ++i) {
char this_address[256];
extract_token(this_address, a, i, ',', sizeof this_address);
striplt(this_address); // strip leading and trailing whitespace
char *aliases = CtdlGetSysConfig(GLOBAL_ALIASES); // First hit the Global Alias Table
- for (int r=0; (recp_array && r<array_len(recp_array)); ++r) {
+ int r;
+ for (r=0; (recp_array && r<array_len(recp_array)); ++r) {
org_recp = (char *)array_get_element_at(recp_array, r);
strncpy(this_recp, org_recp, sizeof this_recp);
- for (int i=0; i<3; ++i) { // pass three times through the aliaser
+ int i;
+ for (i=0; i<3; ++i) { // pass three times through the aliaser
mailtype = expand_aliases(this_recp, aliases);
// If an alias expanded to multiple recipients, strip off those recipients and append them
}
// This loop searches for duplicate recipients in the final list and marks them to be skipped.
- for (int j=0; j<r; ++j) {
+ int j;
+ for (j=0; j<r; ++j) {
if (!strcasecmp(this_recp, (char *)array_get_element_at(recp_array, j) )) {
mailtype = EA_SKIP;
}