From 24345557085981fd7ad413810460bddb252d2265 Mon Sep 17 00:00:00 2001 From: Andreas Heinig Date: Wed, 27 Feb 2013 11:00:26 +0100 Subject: dosfs: PR2091: Fix warning --- cpukit/libfs/src/dosfs/msdos_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libfs/src/dosfs/msdos_format.c') diff --git a/cpukit/libfs/src/dosfs/msdos_format.c b/cpukit/libfs/src/dosfs/msdos_format.c index 49015e8fbd..a939df5eeb 100644 --- a/cpukit/libfs/src/dosfs/msdos_format.c +++ b/cpukit/libfs/src/dosfs/msdos_format.c @@ -40,6 +40,8 @@ #include "msdos.h" #include "dosfs.h" +#define ONE_GB (1024L * 1024L * 1024L) + typedef struct { uint32_t bytes_per_sector; uint32_t totl_sector_cnt; @@ -462,7 +464,6 @@ msdos_set_default_sectors_per_cluster_for_fattype( fmt_params->sectors_per_cluster = 2; } else { - #define ONE_GB ( 1024L * 1024L * 1024L ) uint32_t gigs = ( total_size + ONE_GB ) / ONE_GB; int b; /* scale with the size of disk... */ @@ -601,7 +602,6 @@ static int msdos_format_determine_fmt_params fmt_params->sectors_per_cluster = 2; } else { - #define ONE_GB (1024L * 1024L * 1024L) uint32_t gigs = (total_size + ONE_GB) / ONE_GB; int b; fmt_params->fattype = FAT_FAT32; -- cgit v1.2.3