summaryrefslogtreecommitdiffstats
path: root/src/parti386.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-10-25 18:26:16 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-10-25 18:26:16 +0100
commit5156d5b462f00da3830dc6314dd74feda37f1257 (patch)
tree85ff8a96aeab5a1cdd6054f6be8a53d12d401788 /src/parti386.c
parent4a75ec8effe3e4878e7710a1322d8ed86f059c08 (diff)
Code cleanup
Diffstat (limited to 'src/parti386.c')
-rw-r--r--src/parti386.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parti386.c b/src/parti386.c
index 7908412..ca538cb 100644
--- a/src/parti386.c
+++ b/src/parti386.c
@@ -265,7 +265,7 @@ static uint64_t get_start_sect(const struct partition_dos *p)
return read4_little_endian(p->start4);
}
-uint64_t get_nr_sects(const struct partition_dos *p)
+static uint64_t get_nr_sects(const struct partition_dos *p)
{
return read4_little_endian(p->size4);
}
@@ -281,7 +281,7 @@ static void set_start_sect(struct partition_dos *p, unsigned int start_sect)
}
-int get_geometry_from_i386mbr(const unsigned char *buffer, const int verbose, CHSgeometry_t *geometry)
+static int get_geometry_from_i386mbr(const unsigned char *buffer, const int verbose, CHSgeometry_t *geometry)
{
unsigned int i;
if(verbose>1)
@@ -628,7 +628,7 @@ static int test_MBR_over(disk_t *disk_car,list_part_t *list_part)
return res;
}
-int write_part_i386(disk_t *disk_car, const list_part_t *list_part, const int ro, const int verbose, const int align)
+static int write_part_i386(disk_t *disk_car, const list_part_t *list_part, const int ro, const int verbose, const int align)
{
int res=0;
res+=write_mbr_i386(disk_car,list_part,ro,verbose);