summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index 34b96ef..819c1c7 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -507,7 +507,6 @@ print_part(const struct dos_partition *partp)
static void
init_boot(void)
{
-#ifndef __ia64__
const char *fname;
int fdesc, n;
struct stat sb;
@@ -529,15 +528,6 @@ init_boot(void)
err(1, "%s", fname);
if (n != mboot.bootinst_size)
errx(1, "%s: short read", fname);
-#else
- if (mboot.bootinst != NULL)
- free(mboot.bootinst);
- mboot.bootinst_size = secsize;
- if ((mboot.bootinst = malloc(mboot.bootinst_size)) == NULL)
- errx(1, "unable to allocate boot block buffer");
- memset(mboot.bootinst, 0, mboot.bootinst_size);
- le16enc(&mboot.bootinst[DOSMAGICOFFSET], DOSMAGIC);
-#endif
}
OpenPOWER on IntegriCloud