# $FreeBSD: src/sbin/disklabel/Makefile,v 1.3.14.3 2001/04/25 10:58:15 ru Exp $
# $DragonFly: src/sbin/disklabel/Makefile,v 1.5 2006/10/17 02:18:51 pavalos Exp $
-PROG= disklabel
+PROG= disklabel32
SRCS= disklabel.c
-MAN= disklabel.5 disklabel.8
+MAN= disklabel32.5 disklabel32.8
.include <bsd.prog.mk>
return (1);
}
lseek(f, (off_t)0, SEEK_SET);
-
+
/*
* write enable label sector before write
* (if necessary), disable after writing.
}
} else {
/* allow them to be out of order for old-style tables */
- if (pp->p_offset < current_offset &&
+ if (pp->p_offset < current_offset &&
seen_default_offset && i != RAW_PART &&
pp->p_fstype != FS_VINUM) {
fprintf(stderr,
errors++;
} else if (pp->p_offset != current_offset &&
i != RAW_PART && seen_default_offset) {
- /*
- * this may give unneeded warnings if
+ /*
+ * this may give unneeded warnings if
* partitions are out-of-order
*/
Warning(
}
}
if (i != RAW_PART)
- current_offset = pp->p_offset + pp->p_size;
+ current_offset = pp->p_offset + pp->p_size;
}
}
/* this will check for all possible overlaps once and only once */
for (j = 0; j < i; j++) {
pp2 = &lp->d_partitions[j];
- if (j != RAW_PART && i != RAW_PART &&
+ if (j != RAW_PART && i != RAW_PART &&
pp->p_fstype != FS_VINUM &&
pp2->p_fstype != FS_VINUM &&
part_set[i] && part_set[j]) {
SRCS= disklabel64.c crc32.c
MAN= disklabel64.5 disklabel64.8
+LINKS= ${BINDIR}/disklabel64 ${BINDIR}/disklabel
+MLINKS+= disklabel64.8 disklabel.8
+MLINKS+= disklabel64.5 disklabel.5
+
.include <bsd.prog.mk>