dma - Cast correctly to uintmax_t when using %PRIxMAX
authorMatthias Schmidt <matthias@dragonflybsd.org>
Mon, 20 Sep 2010 08:59:36 +0000 (10:59 +0200)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Mon, 20 Sep 2010 08:59:36 +0000 (10:59 +0200)
Author: Peter Pentchev <roam@ringlet.net>

libexec/dma/spool.c

index 2355988..f5a9d79 100644 (file)
@@ -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+");