summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2014-03-22 15:40:04 +0000
committerkrw <krw@openbsd.org>2014-03-22 15:40:04 +0000
commita1d76f6d1acd7c413fcf7ccd44e7c142e7343904 (patch)
tree3f12d792565fe895ca32453f0a1634478c53c54f
parentFix trap: do not remove the entire WRKDIR -- we may have our backed up files (diff)
downloadwireguard-openbsd-a1d76f6d1acd7c413fcf7ccd44e7c142e7343904.tar.xz
wireguard-openbsd-a1d76f6d1acd7c413fcf7ccd44e7c142e7343904.zip
warn() -> warnx() when errno is irrelevant.
-rw-r--r--sbin/fdisk/part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c
index 0330fa7bb82..51209914dee 100644
--- a/sbin/fdisk/part.c
+++ b/sbin/fdisk/part.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: part.c,v 1.61 2014/03/20 13:43:32 krw Exp $ */
+/* $OpenBSD: part.c,v 1.62 2014/03/22 15:40:04 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -324,7 +324,7 @@ PRT_fix_BN(struct disk *disk, struct prt *part, int pn)
/* XXX - Should handle this... */
if (start > end)
- warn("Start of partition #%d after end!", pn);
+ warnx("Start of partition #%d after end!", pn);
part->bs = start;
part->ns = (end - start) + 1;