summaryrefslogtreecommitdiffstats
path: root/src/fat.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-01 20:57:12 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-01 20:57:12 +0100
commitc06ebfc5f2e463ac815647c7afb83e122efd7d4d (patch)
treea582d9e424b059ef0835bd74051f9abb126b0f1a /src/fat.c
parentc4f158b6ffc7460b036abf233131e22a0daaf8d8 (diff)
Define as static some functions
Diffstat (limited to 'src/fat.c')
-rw-r--r--src/fat.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fat.c b/src/fat.c
index 570193c..0cac0f1 100644
--- a/src/fat.c
+++ b/src/fat.c
@@ -44,7 +44,6 @@
#include "intrf.h"
#include "log.h"
#include "log_part.h"
-/* #include "guid_cmp.h" */
extern const arch_fnct_t arch_i386;
extern const arch_fnct_t arch_mac;
@@ -54,6 +53,9 @@ static int fat32_set_part_name(disk_t *disk_car, partition_t *partition, const s
static int log_fat_info(const struct fat_boot_sector*fh1, const upart_type_t upart_type, const unsigned int sector_size);
static int test_HPFS(disk_t *disk_car,const struct fat_boot_sector *fat_header, partition_t *partition,const int verbose, const int dump_ind);
static int test_OS2MB(disk_t *disk_car,const struct fat_boot_sector *fat_header, partition_t *partition,const int verbose, const int dump_ind);
+static int is_fat12(const partition_t *partition);
+static int is_fat16(const partition_t *partition);
+static int is_fat32(const partition_t *partition);
#define DELETED_FLAG 0xe5 /* marks file as deleted when in name[0] */
#define IS_FREE(n) (!*(n) || *(const unsigned char *) (n) == DELETED_FLAG)
@@ -1003,7 +1005,7 @@ int is_part_fat12(const partition_t *partition)
return 0;
}
-int is_fat12(const partition_t *partition)
+static int is_fat12(const partition_t *partition)
{
return (is_part_fat12(partition) || partition->upart_type==UP_FAT12);
}
@@ -1035,7 +1037,7 @@ int is_part_fat16(const partition_t *partition)
return 0;
}
-int is_fat16(const partition_t *partition)
+static int is_fat16(const partition_t *partition)
{
return (is_part_fat16(partition) || partition->upart_type==UP_FAT16);
}
@@ -1070,7 +1072,7 @@ int is_part_fat32(const partition_t *partition)
return 0;
}
-int is_fat32(const partition_t *partition)
+static int is_fat32(const partition_t *partition)
{
return (is_part_fat32(partition) || partition->upart_type==UP_FAT32);
}