summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/fdisk/disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fdisk/disk.c b/sbin/fdisk/disk.c
index 70835bf4d46..9c532b80b18 100644
--- a/sbin/fdisk/disk.c
+++ b/sbin/fdisk/disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disk.c,v 1.20 2003/07/29 18:38:35 deraadt Exp $ */
+/* $OpenBSD: disk.c,v 1.21 2004/07/11 09:17:36 tom Exp $ */
/*
* Copyright (c) 1997, 2001 Tobias Weingartner
@@ -87,7 +87,7 @@ DISK_getlabelmetrics(char *name)
if ((fd = DISK_open(name, O_RDONLY)) != -1) {
lm = malloc(sizeof(DISK_metrics));
if (lm == NULL)
- err(1, "malloc");
+ err(1, NULL);
if (ioctl(fd, DIOCGDINFO, &dl) == -1) {
warn("DIOCGDINFO");
@@ -150,7 +150,7 @@ DISK_getbiosmetrics(char *name)
bm = malloc(sizeof(di));
if (bm == NULL)
- err(1, "malloc");
+ err(1, NULL);
bm->cylinders = di.bios_cylinders;
bm->heads = di.bios_heads;
bm->sectors = di.bios_sectors;