Cleanup list code

This commit is contained in:
Ian Fan 2018-12-08 23:55:14 +00:00
parent 19e831ed3d
commit c8776fac42
11 changed files with 17 additions and 37 deletions

View file

@ -48,8 +48,7 @@ void list_del(list_t *list, int index) {
}
void list_cat(list_t *list, list_t *source) {
int i;
for (i = 0; i < source->length; ++i) {
for (int i = 0; i < source->length; ++i) {
list_add(list, source->items[i]);
}
}