summaryrefslogtreecommitdiff
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-19 18:42:15 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-19 18:42:15 +0000
commit373f7f8df138ac5ff795fb66ee082d0b90e76486 (patch)
treef4c0ec12f36c82ed9902354270e4237dc5c9e52e /sbin/fdisk
parent2b676734dcc806122f488de3f0eb3307c72a9646 (diff)
change "%12.f" -> "%12.0f" to avoid a -Wformat warning
ok millert@
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c
index ba1a80c0729..841e0d477a5 100644
--- a/sbin/fdisk/part.c
+++ b/sbin/fdisk/part.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: part.c,v 1.31 2003/03/13 22:41:03 miod Exp $ */
+/* $OpenBSD: part.c,v 1.32 2003/04/19 18:42:14 avsm Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -304,7 +304,7 @@ PRT_print(num, partn, units)
} else {
size = (double)partn->ns * DEV_BSIZE /
unit_types[i].conversion;
- printf("%c%1d: %.2X %4d %3d %2d - %4d %3d %2d [%12d:%12.f%s] %s\n",
+ printf("%c%1d: %.2X %4d %3d %2d - %4d %3d %2d [%12d:%12.0f%s] %s\n",
(partn->flag == 0x80)?'*':' ',
num, partn->id,
partn->scyl, partn->shead, partn->ssect,