From a0a50d0b13c215918457bf5baf92cf0be6a841dc Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 20 Sep 2010 10:59:36 +0200 Subject: [PATCH] dma - Cast correctly to uintmax_t when using %PRIxMAX Author: Peter Pentchev --- libexec/dma/spool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/dma/spool.c b/libexec/dma/spool.c index 2355988d39..f5a9d790ee 100644 --- a/libexec/dma/spool.c +++ b/libexec/dma/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+"); -- 2.41.0