svn commit: r221647 - head/sys/geom/part
Andrey V. Elsukov
ae at FreeBSD.org
Sun May 8 11:42:51 UTC 2011
Author: ae
Date: Sun May 8 11:42:51 2011
New Revision: 221647
URL: http://svn.freebsd.org/changeset/base/221647
Log:
Replace UINT_MAX to UINT32_MAX.
Pointed out by: kib
MFC after: 1 week
Modified:
head/sys/geom/part/g_part_mbr.c
head/sys/geom/part/g_part_pc98.c
Modified: head/sys/geom/part/g_part_mbr.c
==============================================================================
--- head/sys/geom/part/g_part_mbr.c Sun May 8 11:32:20 2011 (r221646)
+++ head/sys/geom/part/g_part_mbr.c Sun May 8 11:42:51 2011 (r221647)
@@ -262,7 +262,7 @@ g_part_mbr_create(struct g_part_table *b
if (pp->sectorsize < MBRSIZE)
return (ENOSPC);
- msize = MIN(pp->mediasize / pp->sectorsize, UINT_MAX);
+ msize = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX);
basetable->gpt_first = basetable->gpt_sectors;
basetable->gpt_last = msize - (msize % basetable->gpt_sectors) - 1;
@@ -433,7 +433,7 @@ g_part_mbr_read(struct g_part_table *bas
pp = cp->provider;
table = (struct g_part_mbr_table *)basetable;
- msize = MIN(pp->mediasize / pp->sectorsize, UINT_MAX);
+ msize = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX);
buf = g_read_data(cp, 0L, pp->sectorsize, &error);
if (buf == NULL)
Modified: head/sys/geom/part/g_part_pc98.c
==============================================================================
--- head/sys/geom/part/g_part_pc98.c Sun May 8 11:32:20 2011 (r221646)
+++ head/sys/geom/part/g_part_pc98.c Sun May 8 11:42:51 2011 (r221647)
@@ -261,7 +261,7 @@ g_part_pc98_create(struct g_part_table *
cyl = basetable->gpt_heads * basetable->gpt_sectors;
- msize = MIN(pp->mediasize / SECSIZE, UINT_MAX);
+ msize = MIN(pp->mediasize / SECSIZE, UINT32_MAX);
basetable->gpt_first = cyl;
basetable->gpt_last = msize - (msize % cyl) - 1;
@@ -451,7 +451,7 @@ g_part_pc98_read(struct g_part_table *ba
pp = cp->provider;
table = (struct g_part_pc98_table *)basetable;
- msize = MIN(pp->mediasize / SECSIZE, UINT_MAX);
+ msize = MIN(pp->mediasize / SECSIZE, UINT32_MAX);
buf = g_read_data(cp, 0L, BOOTSIZE, &error);
if (buf == NULL)
More information about the svn-src-head
mailing list