summaryrefslogtreecommitdiff
path: root/sbin/fdisk/misc.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-18 23:22:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-18 23:22:06 +0000
commitf75bf13aca6d5b2a0dd7571736504abf2aba7713 (patch)
treea1a10836dfa9fa8f55cd0bc82000e549ecabed3e /sbin/fdisk/misc.h
parent6ba7814cc08ad08fdad00937a4eeb418200aa8fd (diff)
some delinting; ok otto
Diffstat (limited to 'sbin/fdisk/misc.h')
-rw-r--r--sbin/fdisk/misc.h12
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