mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Birdtest: Replace BT_SUCCESS and BT_FAILURE with 1 and 0
This commit is contained in:
@@ -103,7 +103,7 @@ t_add_tail(void)
|
||||
|
||||
bt_assert(is_filled_list_well_linked());
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -127,7 +127,7 @@ t_add_head(void)
|
||||
|
||||
bt_assert(is_filled_list_well_linked());
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -158,7 +158,7 @@ t_insert_node(void)
|
||||
bt_debug("\n");
|
||||
bt_assert(is_filled_list_well_linked());
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -211,7 +211,7 @@ t_remove_node(void)
|
||||
s_rem_node(&nodes[i]);
|
||||
bt_assert(is_empty_list_well_unlinked());
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -232,7 +232,7 @@ t_add_tail_list(void)
|
||||
bt_assert(nodes2[0].prev == &nodes[MAX_NUM-1]);
|
||||
bt_assert(lst.tail == &nodes2[MAX_NUM-1]);
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -290,7 +290,7 @@ t_iterator_walk(void)
|
||||
i++;
|
||||
}
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -344,7 +344,7 @@ t_original(void)
|
||||
s_add_tail_list(&b, &a);
|
||||
dump("8 (after merge)", &b);
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -363,7 +363,7 @@ t_safe_del_walk(void)
|
||||
}
|
||||
bt_assert(is_empty_list_well_unlinked());
|
||||
|
||||
return BT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
|
Reference in New Issue
Block a user