]> git.ipfire.org Git - people/ms/dma.git/commitdiff
treat st_ino as uintmax_t to match the format string
authorSimon Schubert <2@0x2c.org>
Fri, 16 Apr 2010 08:19:41 +0000 (10:19 +0200)
committerSimon Schubert <2@0x2c.org>
Fri, 16 Apr 2010 08:19:41 +0000 (10:19 +0200)
Submitted-By: Ed Maste <emaste@freebsd.org>
spool.c

diff --git a/spool.c b/spool.c
index dbf0822695975cee8dc41c140e85529d249752c4..b9235e7caee71437ab7ba712a6ee488a9223c5f4 100644 (file)
--- a/spool.c
+++ b/spool.c
@@ -92,7 +92,7 @@ newspoolf(struct queue *queue)
         */
        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+");