diff options
Diffstat (limited to 'partx/sun.c')
-rw-r--r-- | partx/sun.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/partx/sun.c b/partx/sun.c index c8143686..30cbd9fb 100644 --- a/partx/sun.c +++ b/partx/sun.c @@ -68,7 +68,7 @@ read_sun_pt(int fd, struct slice all, struct slice *sp, int ns) { struct sun_raw_part *s; unsigned int offset = all.start, end; int i, j, n; - char *bp; + unsigned char *bp; bp = getblock(fd, offset); if (bp == NULL) @@ -123,10 +123,6 @@ read_sun_pt(int fd, struct slice all, struct slice *sp, int ns) { "sun_disklabel: slice %d overlaps with %d\n", i , j); sp[i].size = 0; } - } else { - if (end <= sp[j].start + sp[j].size) { - sp[i].container = j + 1; - } } } } |