summaryrefslogtreecommitdiff
path: root/mail/dma/files/patch-spool.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2010-08-11 20:24:43 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2010-08-11 20:24:43 +0000
commit6b44f33d891947c149bd466ac2177ddab494cbe4 (patch)
treec63c18610fec6bbc5fd74dc9d56293e5560b0494 /mail/dma/files/patch-spool.c
parentMark this unbroken on sparc64; it may have been marked broken by mistake. (diff)
- Fixes warning in aliases_scan.l [1]
- Fixes warning in spool.c [2] Reported by: QAT Submitted by: Patrice Clement <patricec _at_ acm.org> (IRC) [1], me [2] Approved by: rene@ (mentor vacation)
Diffstat (limited to 'mail/dma/files/patch-spool.c')
-rw-r--r--mail/dma/files/patch-spool.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/dma/files/patch-spool.c b/mail/dma/files/patch-spool.c
new file mode 100644
index 000000000000..e1342d12e03c
--- /dev/null
+++ b/mail/dma/files/patch-spool.c
@@ -0,0 +1,11 @@
+--- ./spool.c.orig 2010-08-10 17:48:35.000000000 +0200
++++ ./spool.c 2010-08-11 18:59:57.113889734 +0200
+@@ -92,7 +92,7 @@
+ */
+ if (fstat(fd, &st) != 0)
+ goto fail;
+- if (asprintf(&queue->id, "%"PRIxMAX, st.st_ino) < 0)
++ if (asprintf(&queue->id, "%"PRIxMAX, (uintmax_t)st.st_ino) < 0)
+ goto fail;
+
+ queue->mailf = fdopen(fd, "r+");