diff options
author | marcel <marcel@FreeBSD.org> | 2009-04-16 05:52:47 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-04-16 05:52:47 +0000 |
commit | 07d1bef868798e3139e659fcfc74c4b02605266b (patch) | |
tree | b37efb28ef5ff21502f2a2895c66e7993b8acd3b /sys/geom | |
parent | cf8f14f029d7d834a8d40e08d6a2c211852a15db (diff) | |
download | FreeBSD-src-07d1bef868798e3139e659fcfc74c4b02605266b.zip FreeBSD-src-07d1bef868798e3139e659fcfc74c4b02605266b.tar.gz |
Precision '*' expects an int and strlen() returns a size_t.
Compensate.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/part/g_part_ebr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/part/g_part_ebr.c b/sys/geom/part/g_part_ebr.c index 752a1b1..ab04866 100644 --- a/sys/geom/part/g_part_ebr.c +++ b/sys/geom/part/g_part_ebr.c @@ -324,7 +324,7 @@ g_part_ebr_fullname(struct g_part_table *table, struct g_part_entry *entry, break; idx++; } - sbuf_printf(sb, "%.*s%u", strlen(pfx) - 1, pfx, idx); + sbuf_printf(sb, "%.*s%u", (int)strlen(pfx) - 1, pfx, idx); } #endif |