summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db-artwork-writer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db-artwork-writer.c b/src/db-artwork-writer.c
index 08de094..f072059 100644
--- a/src/db-artwork-writer.c
+++ b/src/db-artwork-writer.c
@@ -98,14 +98,14 @@ ipod_buffer_grow_file (struct iPodMmapBuffer *mmap_buf, off_t new_size)
result = lseek (mmap_buf->fd, new_size, SEEK_SET);
if (result == (off_t)-1) {
g_print ("Failed to grow file to %lu: %s\n",
- new_size, strerror (errno));
+ (unsigned long)new_size, strerror (errno));
return -1;
}
result = 0;
result = write (mmap_buf->fd, &result, 1);
if (result != 1) {
g_print ("Failed to write a byte at %lu: %s\n",
- new_size, strerror (errno));
+ (unsigned long)new_size, strerror (errno));
return -1;
}