summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-31 21:18:41 +0000
committerphk <phk@FreeBSD.org>2003-01-31 21:18:41 +0000
commitb1d44eed4c448fdf514cfa7a3c29806800026936 (patch)
tree47cfc2494b979ad7f64bca34202880e6f621cb1e /sys
parente9e0de5ca49975c9cdbde8a3c003ba0e84e31847 (diff)
downloadFreeBSD-src-b1d44eed4c448fdf514cfa7a3c29806800026936.zip
FreeBSD-src-b1d44eed4c448fdf514cfa7a3c29806800026936.tar.gz
Remove commented out g_enc_dos_partition(). We won't be needing it.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_mbr.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c
index ce71dd0..91da86b 100644
--- a/sys/geom/geom_mbr.c
+++ b/sys/geom/geom_mbr.c
@@ -97,24 +97,6 @@ g_dec_dos_partition(u_char *ptr, struct dos_partition *d)
d->dp_size = g_dec_le4(ptr + 12);
}
-#if 0
-static void
-g_enc_dos_partition(u_char *ptr, struct dos_partition *d)
-{
-
- ptr[0] = d->dp_flag;
- ptr[1] = d->dp_shd;
- ptr[2] = d->dp_ssect;
- ptr[3] = d->dp_scyl;
- ptr[4] = d->dp_typ;
- ptr[5] = d->dp_ehd;
- ptr[6] = d->dp_esect;
- ptr[7] = d->dp_ecyl;
- g_enc_le4(ptr + 8, d->dp_start);
- g_enc_le4(ptr + 12, d->dp_size);
-}
-#endif
-
struct g_mbr_softc {
int type [NDOSPART];
u_int sectorsize;
OpenPOWER on IntegriCloud