summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs/msdos_format.c
diff options
context:
space:
mode:
authorAndreas Heinig <andreas.heinig@cs.tu-dortmund.de>2013-02-27 11:00:26 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-02-27 11:00:47 +0100
commit24345557085981fd7ad413810460bddb252d2265 (patch)
tree8bec982aa289d0efc6d7eb4659f3717507032dc0 /cpukit/libfs/src/dosfs/msdos_format.c
parentIMFS: PR2093: Fix warning (diff)
downloadrtems-24345557085981fd7ad413810460bddb252d2265.tar.bz2
dosfs: PR2091: Fix warning
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_format.c')
-rw-r--r--cpukit/libfs/src/dosfs/msdos_format.c4
1 files changed, 2 insertions, 2 deletions
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;