X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/d88f0784c1400a06efb1b09d0bfcfa31c284c7d7..a5ffa9b475a426bc73366db01f7cc92a3811bc3a:/src/src/lookups/cdb.c diff --git a/src/src/lookups/cdb.c b/src/src/lookups/cdb.c index 3a9078a4e..153fcf24f 100644 --- a/src/src/lookups/cdb.c +++ b/src/src/lookups/cdb.c @@ -43,7 +43,7 @@ * cdb.[ch] it does *not* link against an external cdb library. * * - * There are 2 varients included within this code. One uses MMAP and + * There are 2 variants included within this code. One uses MMAP and * should give better performance especially for multiple lookups on a * modern machine. The other is the default implementation which is * used in the case where the MMAP fails or if MMAP was not compiled @@ -131,7 +131,7 @@ cdb_bread(int fd, /* * cdb_bread() - * Internal function to parse 4 byte number (endian independant) */ + * Internal function to parse 4 byte number (endian independent) */ static uint32 cdb_unpack(uschar *buf) @@ -390,8 +390,8 @@ for (loop = 0; (loop < hash_offlen); ++loop) { uschar packbuf[8]; - if (lseek(cdbp->fileno, (off_t) cur_offset,SEEK_SET) == -1) return DEFER; - if (cdb_bread(cdbp->fileno, packbuf,8) == -1) return DEFER; + if (lseek(cdbp->fileno, (off_t) cur_offset, SEEK_SET) == -1) return DEFER; + if (cdb_bread(cdbp->fileno, packbuf, 8) == -1) return DEFER; item_hash = cdb_unpack(packbuf); item_posn = cdb_unpack(packbuf + 4);