summaryrefslogtreecommitdiffstats
path: root/qmail-send.c
diff options
context:
space:
mode:
authorManuel Mausz <manuel@mausz.at>2019-06-11 15:28:27 +0200
committermanuel <manuel@mausz.at>2019-06-11 15:29:11 +0200
commit692760720b197b46e8e4268bede8cad6f90399aa (patch)
tree0d0d5f45759b83e15d6668357f9482dca236880b /qmail-send.c
parent54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff)
downloadqmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz
qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2
qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip
Fix compile warnings...
Diffstat (limited to 'qmail-send.c')
-rw-r--r--qmail-send.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/qmail-send.c b/qmail-send.c
index 8c6237e..9d76228 100644
--- a/qmail-send.c
+++ b/qmail-send.c
@@ -1,6 +1,7 @@
1#include <sys/types.h> 1#include <sys/types.h>
2#include <sys/stat.h> 2#include <sys/stat.h>
3#include "readwrite.h" 3#include <unistd.h>
4#include <utime.h>
4#include "sig.h" 5#include "sig.h"
5#include "direntry.h" 6#include "direntry.h"
6#include "control.h" 7#include "control.h"
@@ -484,15 +485,15 @@ void pqfinish()
484{ 485{
485 int c; 486 int c;
486 struct prioq_elt pe; 487 struct prioq_elt pe;
487 time_t ut[2]; /* XXX: more portable than utimbuf, but still worrisome */ 488 struct utimbuf ut;
488 489
489 for (c = 0;c < CHANNELS;++c) 490 for (c = 0;c < CHANNELS;++c)
490 while (prioq_min(&pqchan[c],&pe)) 491 while (prioq_min(&pqchan[c],&pe))
491 { 492 {
492 prioq_delmin(&pqchan[c]); 493 prioq_delmin(&pqchan[c]);
493 fnmake_chanaddr(pe.id,c); 494 fnmake_chanaddr(pe.id,c);
494 ut[0] = ut[1] = pe.dt; 495 ut.actime = ut.modtime = pe.dt;
495 if (utime(fn.s,ut) == -1) 496 if (utime(fn.s,&ut) == -1)
496 log3("warning: unable to utime ",fn.s,"; message will be retried too soon\n"); 497 log3("warning: unable to utime ",fn.s,"; message will be retried too soon\n");
497 } 498 }
498} 499}