do {
temp = start;
for (i = 0; i < partitions; i++) {
- unsigned int lastplusoff;
+ unsigned long long lastplusoff;
if (start == ptes[i].offset)
start += sector_offset;
read = 0;
}
if (!read && start == temp) {
- unsigned int i = start;
+ unsigned long long i = start;
start = read_int(cround(i), cround(i), cround(limit),
0, mesg);
tryprocpt(void) {
FILE *procpt;
char line[100], ptname[100], devname[120];
- int ma, mi, sz;
+ int ma, mi;
+ unsigned long long sz;
procpt = fopen(PROC_PARTITIONS, "r");
if (procpt == NULL) {
}
while (fgets(line, sizeof(line), procpt)) {
- if (sscanf (line, " %d %d %d %[^\n ]",
+ if (sscanf (line, " %d %d %llu %100[^\n ]",
&ma, &mi, &sz, ptname) != 4)
continue;
snprintf(devname, sizeof(devname), "/dev/%s", ptname);