2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

fix whitespaces

This commit is contained in:
Ondřej Surý 2018-06-06 14:37:22 +02:00
parent b4aa7a9d7e
commit 013a49474c
2 changed files with 6 additions and 6 deletions

View File

@ -5419,8 +5419,8 @@ expirenode(dns_db_t *db, dns_dbnode_t *node, isc_stdtime_t now) {
* Force expire with 25% probability. * Force expire with 25% probability.
* XXXDCL Could stand to have a better policy, like LRU. * XXXDCL Could stand to have a better policy, like LRU.
*/ */
force_expire = ISC_TF(rbtnode->down == NULL && force_expire = ISC_TF(rbtnode->down == NULL &&
(isc_random32() % 4) == 0); (isc_random32() % 4) == 0);
/* /*
* Note that 'log' can be true IFF overmem is also true. * Note that 'log' can be true IFF overmem is also true.

View File

@ -104,13 +104,13 @@ isc_random_buf(void *buf, size_t buflen) {
for (i = 0; i + sizeof(r) <= buflen; i += sizeof(r)) { for (i = 0; i + sizeof(r) <= buflen; i += sizeof(r)) {
r = next(); r = next();
memmove((uint8_t *)buf + i, &r, sizeof(r)); /* Buffers cannot memmove((uint8_t *)buf + i, &r, sizeof(r)); /* Buffers cannot
* really overlap * really overlap
* here */ * here */
} }
r = next(); r = next();
memmove((uint8_t *)buf + i, &r, buflen % sizeof(r)); /* Buffer cannot memmove((uint8_t *)buf + i, &r, buflen % sizeof(r)); /* Buffer cannot
* really overlap * really overlap
* here */ * here */
return; return;
} }