]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Cast time_t variable to long for fprintf to match %ld.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 29 May 2006 23:20:46 +0000 (01:20 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Mon, 29 May 2006 23:20:46 +0000 (01:20 +0200)
Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
lib/blkid/save.c

index f52dc46b0228090f140e5ab288bf0af64f2ffdc6..76f2f9e5a3660d5c7924e9689ce55f96d1d21ed6 100644 (file)
@@ -38,7 +38,7 @@ static int save_dev(blkid_dev dev, FILE *file)
 
        fprintf(file,
                "<device DEVNO=\"0x%04lx\" TIME=\"%ld\"",
-               (unsigned long) dev->bid_devno, dev->bid_time);
+               (unsigned long) dev->bid_devno, (long) dev->bid_time);
        if (dev->bid_pri)
                fprintf(file, " PRI=\"%d\"", dev->bid_pri);
        list_for_each(p, &dev->bid_tags) {