summaryrefslogtreecommitdiffstats
path: root/src/fnctdsk.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/fnctdsk.c
parentc4f158b6ffc7460b036abf233131e22a0daaf8d8 (diff)
Define as static some functions
Diffstat (limited to 'src/fnctdsk.c')
-rw-r--r--src/fnctdsk.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/fnctdsk.c b/src/fnctdsk.c
index 8d065b6..4de30d9 100644
--- a/src/fnctdsk.c
+++ b/src/fnctdsk.c
@@ -209,45 +209,11 @@ int delete_list_disk(list_disk_t *list_disk)
return write_used;
}
-int check_list_part(list_part_t *list_part)
-{
- list_part_t *prev=NULL;
- list_part_t *parts;
- if((list_part!=NULL) && (list_part->prev!=NULL))
- {
- log_critical("\ncheck_list_part error: list_part->prev!=NULL\n");
- log_close();
- exit(EXIT_FAILURE);
- }
- log_trace("check_list_part\n");
- for(parts=list_part;parts!=NULL;parts=parts->next)
- {
- log_info("%p %p %p\n",parts->prev, parts, parts->next);
- if(prev!=parts->prev)
- {
- log_critical("\ncheck_list_part error: prev!=parts->prev\n");
- log_close();
- exit(EXIT_FAILURE);
- }
- prev=parts;
- }
- if((prev!=NULL) && (prev->next!=NULL))
- {
- log_critical("\ncheck_list_part error: prev->next!=NULL\n");
- log_close();
- exit(EXIT_FAILURE);
- }
- return 0;
-}
-
list_part_t *sort_partition_list(list_part_t *list_part)
{
list_part_t *new_list_part=NULL;
list_part_t *element;
list_part_t *next;
-#ifdef DEBUG
- check_list_part(list_part);
-#endif
for(element=list_part;element!=NULL;element=next)
{
int insert_error=0;
@@ -257,9 +223,6 @@ list_part_t *sort_partition_list(list_part_t *list_part)
free(element->part);
free(element);
}
-#ifdef DEBUG
- check_list_part(new_list_part);
-#endif
return new_list_part;
}
@@ -280,9 +243,6 @@ list_part_t *gen_sorted_partition_list(const list_part_t *list_part)
void part_free_list(list_part_t *list_part)
{
list_part_t *element;
-#ifdef DEBUG
- check_list_part(list_part);
-#endif
element=list_part;
while(element!=NULL)
{
@@ -297,9 +257,6 @@ void part_free_list(list_part_t *list_part)
void part_free_list_only(list_part_t *list_part)
{
list_part_t *element;
-#ifdef DEBUG
- check_list_part(list_part);
-#endif
element=list_part;
while(element!=NULL)
{