summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fdisk/cmd.c')
-rw-r--r--sbin/fdisk/cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c
index 432308006e1..c0a820f4fa6 100644
--- a/sbin/fdisk/cmd.c
+++ b/sbin/fdisk/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.157 2022/04/20 15:49:56 krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.158 2022/04/24 12:13:37 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -394,13 +394,13 @@ Xwrite(char *args, struct mbr *mbr)
if (gh.gh_sig == GPTSIGNATURE) {
printf("Writing GPT.\n");
if (GPT_write() == -1) {
- warn("error writing GPT");
+ warnx("error writing GPT");
return CMD_CONT;
}
} else {
printf("Writing MBR at offset %llu.\n", mbr->mbr_lba_self);
if (MBR_write(mbr) == -1) {
- warn("error writing MBR");
+ warnx("error writing MBR");
return CMD_CONT;
}
GPT_zap_headers();