diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-18 23:22:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-18 23:22:06 +0000 |
commit | f75bf13aca6d5b2a0dd7571736504abf2aba7713 (patch) | |
tree | a1a10836dfa9fa8f55cd0bc82000e549ecabed3e /sbin/fdisk/misc.h | |
parent | 6ba7814cc08ad08fdad00937a4eeb418200aa8fd (diff) |
some delinting; ok otto
Diffstat (limited to 'sbin/fdisk/misc.h')
-rw-r--r-- | sbin/fdisk/misc.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sbin/fdisk/misc.h b/sbin/fdisk/misc.h index 428e07e9248..ab396917c88 100644 --- a/sbin/fdisk/misc.h +++ b/sbin/fdisk/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.9 2003/06/03 01:13:19 weingart Exp $ */ +/* $OpenBSD: misc.h,v 1.10 2004/09/18 23:22:05 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -34,18 +34,12 @@ /* typedefs */ -static const struct unit_type { +const struct unit_type { char *abbr; int conversion; char *lname; -} unit_types[] = { - {"b", 1 , "Bytes"}, - {" ", DEV_BSIZE , "Sectors"}, - {"K", 1024 , "Kilobytes"}, - {"M", 1024 * 1024 , "Megabytes"}, - {"G", 1024 * 1024 *1024 , "Gigabytes"}, - {NULL, 0 , NULL }, }; +extern const struct unit_type unit_types[]; /* Constants */ #define ASK_HEX 0x01 |