summaryrefslogtreecommitdiff
path: root/os/boot/pc/part.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-06-11 14:21:44 +0000
committerCharles.Forsyth <devnull@localhost>2008-06-11 14:21:44 +0000
commit8a8c2d742b51525f66c2210e3c8a251de10022ff (patch)
tree8282ce595e5fbe2e487dc20f54891d9e9e7cbf37 /os/boot/pc/part.c
parent31a18a6996a6b5927e39cc553696c167e6c88e3d (diff)
20080611-1520
Diffstat (limited to 'os/boot/pc/part.c')
-rw-r--r--os/boot/pc/part.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/os/boot/pc/part.c b/os/boot/pc/part.c
index 8c703ae8..9200e3d4 100644
--- a/os/boot/pc/part.c
+++ b/os/boot/pc/part.c
@@ -89,8 +89,8 @@ oldp9part(SDunit *unit)
for(i = 1; i < n && unit->npart < SDnpart; i++){
if(getfields(line[i], field, 3, ' ') != 3)
break;
- start = strtoul(field[1], 0, 0);
- end = strtoul(field[2], 0, 0);
+ start = strtoull(field[1], 0, 0);
+ end = strtoull(field[2], 0, 0);
if(start >= end || end > unit->sectors)
break;
sdaddpart(unit, field[0], start, end);
@@ -103,7 +103,7 @@ p9part(SDunit *unit, char *name)
{
SDpart *p;
char *field[4], *line[Npart+1];
- ulong start, end;
+ uvlong start, end;
int i, n;
p = sdfindpart(unit, name);
@@ -125,8 +125,8 @@ p9part(SDunit *unit, char *name)
break;
if(getfields(line[i], field, 4, ' ') != 4)
break;
- start = strtoul(field[2], 0, 0);
- end = strtoul(field[3], 0, 0);
+ start = strtoull(field[2], 0, 0);
+ end = strtoull(field[3], 0, 0);
if(start >= end || end > unit->sectors)
break;
sdaddpart(unit, field[1], p->start+start, p->start+end);