aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-29 18:47:12 +0100
committerGitHub <noreply@github.com>2017-06-29 18:47:12 +0100
commit9f95da2df7a946052fe652f3dface5cac42a9fe4 (patch)
treef5b652e46263a2274080f2294e9c1715f6c5ffa8 /contrib
parentad3cb615e8ff7e46e24a43fdb27b7fb743adf9c6 (diff)
parent0a5db3730615811249affa44d9e83085b5660e24 (diff)
downloadrspamd-9f95da2df7a946052fe652f3dface5cac42a9fe4.tar.gz
rspamd-9f95da2df7a946052fe652f3dface5cac42a9fe4.zip
Merge pull request #1711 from moisseev/spelling
[Refactor] Correct misspellings in program code
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cdb/cdb_make.c8
-rw-r--r--contrib/exim/local_scan.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/contrib/cdb/cdb_make.c b/contrib/cdb/cdb_make.c
index b5ce28eeb..646a7e43f 100644
--- a/contrib/cdb/cdb_make.c
+++ b/contrib/cdb/cdb_make.c
@@ -320,7 +320,7 @@ static int findrec(struct cdb_make *cdbmp, const void *key, unsigned klen,
struct cdb_rl *rl;
struct cdb_rec *rp, *rs;
unsigned r;
- int seeked = 0;
+ int sought = 0;
int ret = 0;
for (rl = cdbmp->cdb_rec[hval & 255]; rl; rl = rl->next)
for (rs = rl->rec, rp = rs + rl->cnt; --rp >= rs;) {
@@ -330,9 +330,9 @@ static int findrec(struct cdb_make *cdbmp, const void *key, unsigned klen,
* smarter match() that looks into cdb_buf too, but
* most of a time here spent in finding hash values
* (above), not keys */
- if (!seeked && _cdb_make_flush (cdbmp) < 0)
+ if (!sought && _cdb_make_flush (cdbmp) < 0)
return -1;
- seeked = 1;
+ sought = 1;
r = match (cdbmp, rp->rpos, key, klen);
if (!r)
continue;
@@ -356,7 +356,7 @@ static int findrec(struct cdb_make *cdbmp, const void *key, unsigned klen,
--rl->cnt;
--cdbmp->cdb_rcnt;
}
- finish: if (seeked && lseek (cdbmp->cdb_fd, cdbmp->cdb_dpos, SEEK_SET) < 0)
+ finish: if (sought && lseek (cdbmp->cdb_fd, cdbmp->cdb_dpos, SEEK_SET) < 0)
return -1;
return ret;
}
diff --git a/contrib/exim/local_scan.c b/contrib/exim/local_scan.c
index 522750144..1ac52f52a 100644
--- a/contrib/exim/local_scan.c
+++ b/contrib/exim/local_scan.c
@@ -175,7 +175,7 @@ int FakeSMTPCommand (socket_t sock,
}
-static int writen (socket_t fd, const char *vptr, int n)
+static int written (socket_t fd, const char *vptr, int n)
{
size_t nleft;
int nwritten;
@@ -263,7 +263,7 @@ static int SendEnvelope (char *sFile)
if (FakeSMTPCommand (sock, "\r\n", "", sFile, 1, 0) != _OK)
return ERR_WRITE;
- if (writen (sock, psBuf, bytesRead) != bytesRead)
+ if (written (sock, psBuf, bytesRead) != bytesRead)
return ERR_WRITE;
}
else