diff --git a/cv5/a_train.c b/cv5/a_train.c index 9774063..e889bd1 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -31,11 +31,11 @@ void print_train(struct car* first) { } } -void cancel_train(struct car* first, int val) { +void cancel_train(struct car* first) { if(first == NULL){ exit(0); } - else if(first->next == NULL){ + if(first->value == NULL){ struct car* this; this = first; first = this->next;