diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 22:05:52 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 22:05:52 +0200 |
commit | e6e9663d40f7aab9e1982dddcaa11386551ad182 (patch) | |
tree | 39c2a34aa78d4723e8308d270e872f61da3818ca /src/qmail-send.c | |
parent | 20b85c03e751b4876fa3c92040464e483172b746 (diff) |
fix issues preventing compilationjannis
Diffstat (limited to 'src/qmail-send.c')
-rw-r--r-- | src/qmail-send.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/qmail-send.c b/src/qmail-send.c index 31aa60e..13800f4 100644 --- a/src/qmail-send.c +++ b/src/qmail-send.c @@ -40,8 +40,8 @@ #include "sendtodo.h" #include "trigger.h" -int lifetime = 604800; -int bouncemaxbytes = 0; +long lifetime = 604800; +long bouncemaxbytes = 0; stralloc percenthack = {0}; struct constmap mappercenthack; @@ -444,14 +444,15 @@ void pqfinish() { int c; struct prioq_elt pe; - time_t ut[2]; /* XXX: more portable than utimbuf, but still worrisome */ + //time_t ut[2]; /* XXX: more portable than utimbuf, but still worrisome */ + struct utimbuf ut; for (c = 0; c < CHANNELS; ++c) { while (prioq_min(&pqchan[c], &pe)) { prioq_delmin(&pqchan[c]); fnmake_chanaddr(pe.id, c); - ut[0] = ut[1] = pe.dt; - if (utime(fn.s, ut) == -1) + ut.actime = ut.modtime = pe.dt; + if (utime(fn.s, &ut) == -1) log3s("warning: unable to utime ", fn.s, "; message will be retried too soon\n"); } } @@ -796,8 +797,8 @@ struct del { }; unsigned long masterdelid = 1; -unsigned int concurrency[CHANNELS] = {10, 20}; -unsigned int concurrencyused[CHANNELS] = {0, 0}; +unsigned long concurrency[CHANNELS] = {10, 20}; +unsigned long concurrencyused[CHANNELS] = {0, 0}; struct del *d[CHANNELS]; stralloc dline[CHANNELS]; char delbuf[2048]; |