case '\\':
++templ;
if (*templ) {
- *filter++ = *templ++;
+ *filter = *templ;
+ ++filter;
+ ++templ;
--size;
}
break;
default:
- *filter++ = *templ++;
+ *filter = *templ;
+ ++filter;
+ ++templ;
--size;
break;
}
unsigned int i = 0;
while (*s) {
++j;
- n ^= 271 * (*s++);
+ n ^= 271 * *s;
+ ++s;
}
i = n ^ (j * 271);
return i % size;
return false; // already have it
assert(size_ < capacity_); // \todo: replace with Must()
- const int pos = size_++;
+ const int pos = size_;
+ ++size_;
index_[fd] = pos;
descriptors_[pos] = fd;
return true; // really added
StoreClientStats(MemBuf *anEntry):where(anEntry),index(0) {}
void operator()(store_client const &x) {
- x.dumpStats(where, index++);
+ x.dumpStats(where, index);
+ ++index;
}
MemBuf *where;
goto done;
}
- *d++ = *p++;
+ *d = *p;
+ ++d;
+ ++p;
break;
}
}
fd_bytes(fd, len, FD_READ);
assert(N);
- (*N)++;
+ ++(*N);
debugs(78, 3, "idnsRead: FD " << fd << ": received " << len << " bytes from " << from);
assert( xstrncpy(position, """, sizeof(localbuf) + (position-localbuf)) );
position += 6;
} else {
- *(position++) = ch;
+ *position = ch;
+ ++position;
}
}
position += strlen (position);
*position++ = '\"';
}
- *position++ = '>';
+ *position = '>';
+ ++position;
*position = '\0';
addLiteral (localbuf, position - localbuf);
while ((c = *(const unsigned char *) header++) != '\0') {
if (c == '\r') {
- *buf_cursor++ = '\\';
- *buf_cursor++ = 'r';
+ *buf_cursor = '\\';
+ ++buf_cursor;
+ *buf_cursor = 'r';
+ ++buf_cursor;
} else if (c == '\n') {
- *buf_cursor++ = '\\';
- *buf_cursor++ = 'n';
+ *buf_cursor = '\\';
+ ++buf_cursor;
+ *buf_cursor = 'n';
+ ++buf_cursor;
} else if (c <= 0x1F
|| c >= 0x7F
|| c == '%'
|| c == ' ') {
- *buf_cursor++ = '%';
+ *buf_cursor = '%';
+ ++buf_cursor;
i = c * 2;
- *buf_cursor++ = c2x[i];
- *buf_cursor++ = c2x[i + 1];
+ *buf_cursor = c2x[i];
+ ++buf_cursor;
+ *buf_cursor = c2x[i + 1];
+ ++buf_cursor;
} else {
- *buf_cursor++ = (char) c;
+ *buf_cursor = (char) c;
+ ++buf_cursor;
}
}
case gopher_ds::HTML_DIR: {
tline = line;
- gtype = *tline++;
+ gtype = *tline;
+ ++tline;
name = tline;
selector = strchr(tline, TAB);
sum = 0;
while (size > 1) {
- sum += *ptr++;
+ sum += *ptr;
+ ++ptr;
size -= 2;
}
icmp->icmp_code = 0;
icmp->icmp_cksum = 0;
icmp->icmp_id = icmp_ident;
- icmp->icmp_seq = (unsigned short) icmp_pkts_sent++;
+ icmp->icmp_seq = (unsigned short) icmp_pkts_sent;
+ ++icmp_pkts_sent;
// Construct ICMP packet data content
echo = (icmpEchoData *) (icmp + 1);
icmp->icmp6_code = 0;
icmp->icmp6_cksum = 0;
icmp->icmp6_id = icmp_ident;
- icmp->icmp6_seq = (unsigned short) icmp_pkts_sent++;
+ icmp->icmp6_seq = (unsigned short) icmp_pkts_sent;
+ ++icmp_pkts_sent;
icmp6_pktsize = sizeof(struct icmp6_hdr);
// 1 || 0 | 4 | 0 |
// 2 || 1 | 4 | 0 |
// 3 || 4 | 2 | 0 |
- state = table[ state ][ xlate(*s++) ];
+ state = table[ state ][ xlate(*s) ];
+ ++s;
}
if ( state < 4 )
#endif
case 'v':
/* undocumented: may increase verb-level by giving more -v's */
- opt_verbose++;
+ ++opt_verbose;
break;
case '?': /* usage */
}
loops = ping ? pcount : 1;
- for (i = 0; loops == 0 || i < loops; i++) {
+ for (i = 0; loops == 0 || i < loops; ++i) {
int fsize = 0;
struct addrinfo *AI = NULL;