diff options
Diffstat (limited to 'include/raid.h')
-rw-r--r-- | include/raid.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/raid.h b/include/raid.h index e2e2cf5a567..7655fbe09f7 100644 --- a/include/raid.h +++ b/include/raid.h @@ -23,14 +23,7 @@ #define RAID_DEFAULT_CHUNKSIZE 256*1024 /* 256kB */ extern const char *raid_type_string[]; - -#ifdef __cplusplus -extern "C" { -#endif -const char *my_raid_type(int raid_type); -#ifdef __cplusplus -} -#endif +#define my_raid_type(raid_type) raid_type_string[(int)(raid_type)] #if defined(USE_RAID) && !defined(DONT_USE_RAID) |