From 45db25817ff342a86b2ddf000b4b3a4d59be8848 Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Thu, 26 Jul 2012 12:22:55 +0100 Subject: [PATCH] filters: move device_info_t definition to header --- lib/filters/device-types.h | 5 +++++ lib/filters/filter.c | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/filters/device-types.h b/lib/filters/device-types.h index 1208160f6..9efbe6851 100644 --- a/lib/filters/device-types.h +++ b/lib/filters/device-types.h @@ -13,6 +13,11 @@ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +typedef struct { + const char name[15]; + const int8_t max_partitions; +} device_info_t; + /* * Devices are only checked for partition tables if their minor number * is a multiple of the number corresponding to their type below diff --git a/lib/filters/filter.c b/lib/filters/filter.c index bab20ec66..dcb6c5ef4 100644 --- a/lib/filters/filter.c +++ b/lib/filters/filter.c @@ -27,6 +27,8 @@ #include #include +#include "device-types.h" + #define NUMBER_OF_MAJORS 4096 #define PARTITION_SCSI_DEVICE (1 << 0) @@ -35,13 +37,6 @@ static struct { int flags; } _partitions[NUMBER_OF_MAJORS]; -typedef struct { - const char name[15]; - const int8_t max_partitions; -} device_info_t; - -#include "device-types.h" - static int _md_major = -1; static int _blkext_major = -1; static int _drbd_major = -1;