summaryrefslogtreecommitdiff
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-03-27 15:56:46 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-03-27 15:56:46 +0000
commit57451065f0d7434fc3aa26c08af79e9bbc6932ee (patch)
treef14a99dcf1d3533d7aff7a98855a28cef94a8a72 /sbin/fdisk
parentf9ad7593a27bbdcc31ca84958c732ca7a96b3f8a (diff)
Use DOSACTIVE define instead of magic number 0x80.
Diffstat (limited to 'sbin/fdisk')
-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 109a45b2b33..ac9091328fd 100644
--- a/sbin/fdisk/part.c
+++ b/sbin/fdisk/part.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: part.c,v 1.70 2015/03/26 14:08:12 krw Exp $ */
+/* $OpenBSD: part.c,v 1.71 2015/03/27 15:56:45 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -280,7 +280,7 @@ PRT_print(int num, struct prt *partn, char *units)
size = ((double)partn->ns * unit_types[SECTORS].conversion) /
unit_types[i].conversion;
printf("%c%1d: %.2X %6u %3u %3u - %6u %3u %3u [%12llu:%12.0f%s] %s\n",
- (partn->flag == 0x80)?'*':' ',
+ (partn->flag == DOSACTIVE)?'*':' ',
num, partn->id,
partn->scyl, partn->shead, partn->ssect,
partn->ecyl, partn->ehead, partn->esect,